You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 8.22.2, a regression was introduced in isDisplayed method. Webdriverio is no longer able to detect that an element isn't displayed with the following styles:
overflow-x: hidden; width: 0;
or overflow-y: hidden; height: 0;
It is however correctly able to detect that the element isn't displayed with the following styles:
overflow: hidden; width: 0; height: 0;
What is your expected behavior?
Webdriver should be consistently able to tell that elements with overflow the following styles are not displayed:
overflow: hidden; width: 0; height: 0;
overflow-x: hidden; width: 0;
or overflow-y: hidden; height: 0;
How to reproduce the bug.
I've started by forking cucumber-boilerplate and adding a test-suite for isDisplayed with different combinations of overflow(-x/-y): hidden; and zero width/height. Here are the steps to reproduce:
We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
latest
Node.js Version
latest
Mode
Standalone Mode
Which capabilities are you using?
No response
What happened?
In 8.22.2, a regression was introduced in isDisplayed method. Webdriverio is no longer able to detect that an element isn't displayed with the following styles:
overflow-x: hidden; width: 0;
overflow-y: hidden; height: 0;
It is however correctly able to detect that the element isn't displayed with the following styles:
overflow: hidden; width: 0; height: 0;
What is your expected behavior?
Webdriver should be consistently able to tell that elements with overflow the following styles are not displayed:
overflow: hidden; width: 0; height: 0;
overflow-x: hidden; width: 0;
overflow-y: hidden; height: 0;
How to reproduce the bug.
I've started by forking cucumber-boilerplate and adding a test-suite for isDisplayed with different combinations of
overflow(-x/-y): hidden;
and zero width/height. Here are the steps to reproduce:git clone [email protected]:louisremi/cucumber-boilerplate.git
git checkout test-case/isElementDisplayed-overflow-bug
npm install
npm run test:features
The two interesting files in this repo to understand the problem are:
Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: