Improve UI when el not actionable by distinctly displaying stale elements vs hidden elements #696
Labels
pkg/driver
This is due to an issue in the packages/driver directory
type: enhancement
Requested enhancement of existing feature
The visibility algorithm correctly identifies detached elements as "hidden".
But when determining and providing the reason its hidden, we get an error message about the effective width and height being 0.
Since detached elements do not actually displace any content, this is technically correct, but miscommunicates the reason why.
We should provide a better error message in this circumstance and also add a new UI icon for detached elements (as opposed to just hidden).
Here's an example.
In this situation I've caused the element to be removed after the
cy.get()
but during the.click()
This test should correctly fail but the error message sends me down the wrong path.
Here's a suggestion where instead of displaying the invisibility icon, we add a new icon and tooltip to indicate that this element has become detached.
The text was updated successfully, but these errors were encountered: