-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
9.4.1
Node.js Version
v20.11.1
Mode
WDIO Testrunner
Which capabilities are you using?
{
browserName: 'chrome'
}What happened?
A simple test timed out loading the URL file://
describe('example', () => {
it('load page', async () => {
await browser.url('file:///Some/valid/path/test.html');
});
});
------------------------------------------------------------------
[chrome 131.0.6778.109 mac #0-0] Running: chrome (v131.0.6778.109) on mac
[chrome 131.0.6778.109 mac #0-0] Session ID: 43ae91a4726d6ec62ea3c108d9225aec
[chrome 131.0.6778.109 mac #0-0]
[chrome 131.0.6778.109 mac #0-0] » /simple.ts
[chrome 131.0.6778.109 mac #0-0] example
[chrome 131.0.6778.109 mac #0-0] ✖ load page
[chrome 131.0.6778.109 mac #0-0]
[chrome 131.0.6778.109 mac #0-0] 1 failing (5s)
[chrome 131.0.6778.109 mac #0-0]
[chrome 131.0.6778.109 mac #0-0] 1) example load page
[chrome 131.0.6778.109 mac #0-0] Error: waitUntil condition timed out after 5000ms
What is your expected behavior?
To succeed and not timeout.
How to reproduce the bug.
Uploading a simple example.
simple.zip
npm I
npm run test-simple
Relevant log output
------------------------------------------------------------------
[chrome 131.0.6778.109 mac #0-0] Running: chrome (v131.0.6778.109) on mac
[chrome 131.0.6778.109 mac #0-0] Session ID: 43ae91a4726d6ec62ea3c108d9225aec
[chrome 131.0.6778.109 mac #0-0]
[chrome 131.0.6778.109 mac #0-0] » /simple.ts
[chrome 131.0.6778.109 mac #0-0] example
[chrome 131.0.6778.109 mac #0-0] ✖ load page
[chrome 131.0.6778.109 mac #0-0]
[chrome 131.0.6778.109 mac #0-0] 1 failing (5s)
[chrome 131.0.6778.109 mac #0-0]
[chrome 131.0.6778.109 mac #0-0] 1) example load page
[chrome 131.0.6778.109 mac #0-0] Error: waitUntil condition timed out after 5000ms
If I change the code to: await browser.url('file:///Some/valid/path/test.html').catch(console.error);
Then I see:
[0-0] Error: waitUntil condition timed out after 5000ms
[0-0] at <anonymous> (.../simple-file/node_modules/webdriverio/build/index.js:4924:13)
[0-0] at Browser.wrapCommandFn (.../simple-file/node_modules/@wdio/utils/build/index.js:884:23)
[0-0] at Browser.url3 (.../simple-file/node_modules/webdriverio/build/index.js:4885:21)
[0-0] at Browser.wrapCommandFn (.../simple-file/node_modules/@wdio/utils/build/index.js:884:23)
[0-0] at UserContext.<anonymous> (.../simple-file/simple.ts:4:9)
[0-0] at UserContext.executeAsync (.../simple-file/node_modules/@wdio/utils/build/index.js:1004:20)
[0-0] at UserContext.testFrameworkFnWrapper (.../simple-file/node_modules/@wdio/utils/build/index.js:1075:14)
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
### Is there an existing issue for this?
- [X] I have searched the existing issues
Reactions are currently unavailable