-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
latest 9
Node.js Version
v20.15.1
Mode
Standalone Mode
Which capabilities are you using?
Running in Windows/Chrome browser
chrome version - 131.0.6778.205What happened?
We are required to use reloadSession command to clear out the cookies and other saved data in between the test.
It was working fine until WDIO8, post upgrading to WDIO 9 and when using BIDI specifically after a reloadSession call, browser.url call fails with the below error
Error: WebDriver Bidi command "browsingContext.navigate" failed with error: no such frame - Context C242C6328D7748295EDE32939A9DBFA3 not found
What is your expected behavior?
But when i enforce 'wdio:enforceWebDriverClassic': true, it works just fine, I face this issue only when using BIDI protocol
How to reproduce the bug.
await browser.url('https://google.com');
await browser.pause(10000);//wait for it to load
await browser.reloadSession();
await browser.url('https://google.com');
await await browser.pause(10000);//wait for it to load
Code provided above is a simple example to reproduce the issue, below is my package.json
"@wdio/cli": "^9.5.1", "@wdio/devtools-service": "^8.40.2", "@wdio/jasmine-framework": "^9.5.1", "@wdio/local-runner": "^9.5.1", "@wdio/spec-reporter": "^9.5.0",
Relevant log output
Error: WebDriver Bidi command "browsingContext.navigate" failed with error: no such frame - Context C242C6328D7748295EDE32939A9DBFA3 not foundCode of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues