-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support FindElements (Multiple) from ShadowRoot #235
Comments
Decided to use the most compatible script (based on this answer https://stackoverflow.com/a/28997302):
|
mialeska
added a commit
to aquality-automation/aquality-selenium-java
that referenced
this issue
May 9, 2023
- add JavaScript to generate CSS selector from element - try to generate CSS selector if XPath generation fails - necessary for ShadowRoot elements since XPath doesn't work for them Related to aquality-automation/aquality-selenium-dotnet#235
mialeska
added a commit
to aquality-automation/aquality-selenium-java
that referenced
this issue
Jan 25, 2024
* Support Finding of Multiple elements from ShadowRoot - add JavaScript to generate CSS selector from element - try to generate CSS selector if XPath generation fails - necessary for ShadowRoot elements since XPath doesn't work for them Related to aquality-automation/aquality-selenium-dotnet#235 * Update ElementFactory to use generate CSS locator logic in generateLocator method instead of generateXPathLocator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of XPath generation, we can try to generate css selector:
https://www.tutorialspoint.com/how-to-create-a-function-generateselector-to-generate-css-selector-path-of-a-dom-element
or
https://www.geeksforgeeks.org/how-to-create-a-function-generateselector-to-generate-css-selector-path-of-a-dom-element/
or
https://dev.to/aniket_chauhan/generate-a-css-selector-path-of-a-dom-element-4aim
or
https://stackoverflow.com/questions/3620116/get-css-path-from-dom-element
The text was updated successfully, but these errors were encountered: