Have you read the Contributing Guidelines on issues?
WebdriverIO Version
9.19.1
Node.js Version
24.3.0
Mode
WDIO Testrunner
Which capabilities are you using?
{
browserName: 'chrome',
browserVersion: 'stable',
goog:chromeOptions': {
args: [ 'start-maximized',
'--disable-gpu',
'--disable-dev-shm-usage',
'--no-sandbox',
'--lang=en-US',
'--disable-notifications',
'--disable-push-messaging',
'--disable-background-networking',
'--ignore-certificate-errors',
'--disable-default-apps',
'--disable-infobars',
'--disable-extensions', '--window-size=1920,1080', '--headless=new', ],
'--disable-dev-shm-usage', 'safebrowsing.enabled': true,
enableNetwork: true,
enablePage: true
}
}
What happened?
After upgrading Chrome version to latest official (148.0.7778.179) we started observing multiple failures, especially in our dropdown components but not only.
Failures would look like this:
webdriverio(middleware): element did not become interactable: Element <input _ngcontent-ng-c3077179777="" type="text" autocomplete="off" placeholder="Search..." tabindex="0" aria-label="filter list by keyword class="ng-untouched ng-pristine ng-valid" /> did not become interactable
at FetchRequest._request (file:///home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriver/build/node.js:1951:19)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.setValue (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:7287:3)
The element that is failing is a searchable dropdown, where on click an input + dropdown appears. The screenshots from the failures display the dropdown is successfully opened and the input is focused, the selector is correct (it hasn't changed and is sometimes still working):
Here's a code snippet of the place of the failure:
async setValue(formValue: string) {
await this.click(); //this is working
await this.search.waitForExist({ timeout: timeouts.wait2sec });
await this.search.waitForDisplayed();
await this.search.setValue(formValue);
}
So the 2 wait functions return with success but then when setValue is called - it fails.
}
This behavior is only reproducible on Jenkins running headless with multiple tests executing in parallel. Running a single test locally always works. If retried some test pass the second time but the failure rate is very high in a suite with 1281 tests the num of failures (including retries) is 175.
It happens in total of 3 components, all of them display a dropdown and the failure happens on the 1st attempt to interract with this dropdown - check a checkbox, set input value or select a
value.
Here are the other 2 stack traces:
For checkbox click on a dropdown failing to be clicked:
webdriverio(middleware): element did not become interactable: Element
United States of America - USA did not become interactable
at FetchRequest._request (file:///home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriver/build/node.js:1951:19)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async elementClick (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriverio/build/node.js:6412:12)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
For a
element in a dropdown, failing to be clicked:
webdriverio(middleware): element did not become interactable: Element
EUR - Euro did not become interactable
at FetchRequest._request (file:///home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriver/build/node.js:1951:19)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async elementClick (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:6412:12)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
What is your expected behavior?
Dropdowns to continue to work on newer versions of Chrome.
How to reproduce the bug.
I don't have an easy example on how to reproduce the bug. While I do understand this is a big obsticle, it will be great to get a feedback on the issue if there are ideas how it can be approached. For now my only option seems to be to reduce chrome version and hope the error goes away.
Relevant log output
webdriverio(middleware): element did not become interactable: Element <li _ngcontent-ng-c3038982989="" selecta11yitem="" role="option" tabindex="-1" id="mco-3a22f6c90-EUR---Euro">EUR - Euro</li> did not become interactable
at FetchRequest._request (file:///home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriver/build/node.js:1951:19)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async elementClick (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:6412:12)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
Code of Conduct
Is there an existing issue for this?
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
9.19.1
Node.js Version
24.3.0
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
After upgrading Chrome version to latest official (148.0.7778.179) we started observing multiple failures, especially in our dropdown components but not only.
Failures would look like this:
The element that is failing is a searchable dropdown, where on click an input + dropdown appears. The screenshots from the failures display the dropdown is successfully opened and the input is focused, the selector is correct (it hasn't changed and is sometimes still working):
Here's a code snippet of the place of the failure:
async setValue(formValue: string) {
await this.click(); //this is working
await this.search.waitForExist({ timeout: timeouts.wait2sec });
await this.search.waitForDisplayed();
await this.search.setValue(formValue);
}
So the 2 wait functions return with success but then when setValue is called - it fails.
}
This behavior is only reproducible on Jenkins running headless with multiple tests executing in parallel. Running a single test locally always works. If retried some test pass the second time but the failure rate is very high in a suite with 1281 tests the num of failures (including retries) is 175.
It happens in total of 3 components, all of them display a dropdown and the failure happens on the 1st attempt to interract with this dropdown - check a checkbox, set input value or select a
Here are the other 2 stack traces:
For checkbox click on a dropdown failing to be clicked:
webdriverio(middleware): element did not become interactable: Element
at FetchRequest._request (file:///home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriver/build/node.js:1951:19)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async elementClick (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriverio/build/node.js:6412:12)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669@2/node_modules/@wdio/utils/build/index.js:978:23)
For a
webdriverio(middleware): element did not become interactable: Element
at FetchRequest._request (file:///home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriver/build/node.js:1951:19)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async elementClick (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:6412:12)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
at async Element.elementErrorHandlerCallbackFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/webdriverio/build/node.js:8458:24)
at async Element.wrapCommandFn (/home/jenkins/agent-node2/workspace/mco-wdio-automation-test_PR-1669/node_modules/@wdio/utils/build/index.js:978:23)
What is your expected behavior?
Dropdowns to continue to work on newer versions of Chrome.
How to reproduce the bug.
I don't have an easy example on how to reproduce the bug. While I do understand this is a big obsticle, it will be great to get a feedback on the issue if there are ideas how it can be approached. For now my only option seems to be to reduce chrome version and hope the error goes away.
Relevant log output
Code of Conduct
Is there an existing issue for this?