const { client } = require('nightwatch-api');
const { Given, Then, When } = require('cucumber');
const homePage = client.page.homepage();
Then(/^click "([^"]*)" service from list$/, async(service) => {
let result = await client.url('http://localhost:8080/').elements('css selector', 'div.flex.mt-4.v-card.v-sheet.theme--light > div > div > table > tbody > tr');
console.log(" col length is " + "<->" + result.value.length);
return homePage;
});
感谢您的帮助。谢谢!
我正在尝试为BDD进行夜视和黄瓜集成。我无法在步骤函数中访问client.elements函数。 const {client} = require('nightwatch-api'); const {给定,然后,...