Then("a Cucumber sentence", async function () {
await driver.findElements(By.xpath('/html/body'))
});
我尝试使用 Selenium 中的 findElements 但不断得到
ReferenceError: By is not defined
我能为此做些什么?
Then("a Cucumber sentence", async function () {
await driver.findElements(By.xpath('/html/body'))
});
我尝试使用 Selenium 中的 findElements 但不断得到
ReferenceError: By is not defined
我能为此做些什么?