admin管理员组文章数量:1332377
I am using webdriver.io for automation testing but i am getting error ERROR webdriver: Request failed with status 404 due to invalid session id: invalid session" and this is my code
describe("Main Page",()=>{
it("Verify List Items",()=>{
browser.url("/");
browser.pause(5000)
const listExamples = $$("//div[@id='content']//ul/li");//> Double dollar to find all the elements
expect (listExamples).toBeElementsArrayOfSize(45);
console.log(listExamples);
})
})
I am using webdriver.io for automation testing but i am getting error ERROR webdriver: Request failed with status 404 due to invalid session id: invalid session" and this is my code
describe("Main Page",()=>{
it("Verify List Items",()=>{
browser.url("/");
browser.pause(5000)
const listExamples = $$("//div[@id='content']//ul/li");//> Double dollar to find all the elements
expect (listExamples).toBeElementsArrayOfSize(45);
console.log(listExamples);
})
})
Share
Improve this question
asked Sep 28, 2021 at 11:54
Harshad BBHarshad BB
1191 gold badge1 silver badge8 bronze badges
2 Answers
Reset to default 2I found the answer actually from 14/04/2021 sync mode will not be supported anymore starting from Node.js v16 due to changes in Chromium. So I just used async and error was solved.
On WebdriverIO official site, I see that it has the guideline about "How to enable/disable sync mode". Please take a look on this: https://webdriver.io/docs/async-migration
本文标签:
版权声明:本文标题:javascript - "ERROR webdriver: Request failed with status 404 due to invalid session id: invalid sessio" - Sta 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742305388a2449811.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论