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
I suspect the problem is that testcafe checks visibility by looking at the height property. It is possible for a parent element to be hidden while the svg is visible and interactable.
Any personal estimate may be misleading, so I cannot currently tell you the precise date. Usually, we publish a new release approximately once every two weeks.
What is your Scenario?
I have a svg with a parent div that has a height of 0. The SVG is visible and I want to click it.
What is the Current behavior?
Testcafe doesn't let me click the SVG because it thinks it's hidden:
The element that matches the specified selector is not visible.
What is the Expected behavior?
I should be able to click the SVG
What is your public website URL? (or attach your complete example)
TestcafeSampleProjectBug.zip
Sample html:
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
No response
Screenshots
SVG with hidden parent:
Steps to Reproduce
Steps
testcafe chrome tests
TestCafe version
1.18.6
Node.js version
16.13.0
Command-line arguments
testcafe chrome tests
Browser name(s) and version(s)
Chrome 100
Platform(s) and version(s)
Windows 10
Other
This looks like a regression from #3495
src/client/core/utils/shared/visibility.ts
I suspect the problem is that testcafe checks visibility by looking at the height property. It is possible for a parent element to be hidden while the svg is visible and interactable.
Source:
https://github.com/DevExpress/testcafe/blob/master/src/client/core/utils/shared/visibility.ts#L12
The text was updated successfully, but these errors were encountered: