-
-
Notifications
You must be signed in to change notification settings - Fork 88
Add ability to interact with shadow dom elements #1912
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please add integration tests
vividus-extension-selenium/src/main/java/org/vividus/ui/action/search/Locator.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/ui/action/search/SearchParameters.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/ui/util/LocatorConversionUtils.java
Outdated
Show resolved
Hide resolved
...s-plugin-web-app/src/main/java/org/vividus/ui/web/action/search/ShadowCssSelectorSearch.java
Outdated
Show resolved
Hide resolved
e72b07a
to
aa812ff
Compare
9f99524
to
4a2228c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add docs describing new locator
...extension-selenium/src/main/java/org/vividus/ui/action/search/ShadowDomSearchParameters.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/ui/util/LocatorConversionUtils.java
Outdated
Show resolved
Hide resolved
...extension-selenium/src/main/java/org/vividus/ui/action/search/ShadowDomSearchParameters.java
Outdated
Show resolved
Hide resolved
...extension-selenium/src/main/java/org/vividus/ui/action/search/ShadowDomSearchParameters.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/ui/util/LocatorConversionUtils.java
Outdated
Show resolved
Hide resolved
...s-plugin-web-app/src/main/java/org/vividus/ui/web/action/search/ShadowCssSelectorSearch.java
Outdated
Show resolved
Hide resolved
95bac84
to
8723c3d
Compare
vividus-tests/src/main/resources/story/integration/SetVariableSteps.story
Outdated
Show resolved
Hide resolved
6453e42
to
07c3f59
Compare
668ae73
to
4ff8189
Compare
vividus-extension-selenium/src/main/java/org/vividus/ui/action/search/LocatorType.java
Outdated
Show resolved
Hide resolved
vividus-plugin-web-app/src/main/java/org/vividus/ui/web/action/search/WebLocatorType.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/ui/action/search/LocatorType.java
Show resolved
Hide resolved
4ff8189
to
26d2fc0
Compare
26d2fc0
to
fab7950
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SpotBugs violation failed the builds
b98dea0
to
e5425cc
Compare
fe97e17
to
c79bf5c
Compare
vividus-tests/src/main/resources/story/integration/SetVariableSteps.story
Outdated
Show resolved
Hide resolved
...sion-selenium/src/test/java/org/vividus/ui/action/search/ShadowDomSearchParametersTests.java
Outdated
Show resolved
Hide resolved
import org.vividus.ui.action.search.ShadowDomSearchParameters; | ||
import org.vividus.ui.action.search.Visibility; | ||
|
||
public class ShadowCssSelectorSearchTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
branch with filtering by visibility is not covered
9e97e41
to
7d2ab41
Compare
...extension-selenium/src/main/java/org/vividus/ui/action/search/ShadowDomSearchParameters.java
Outdated
Show resolved
Hide resolved
7d2ab41
to
4811436
Compare
.map(String::strip) | ||
.collect(Collectors.toList()); | ||
String targetValue = searchValues.get(searchValues.size() - 1); | ||
String upperShadowHost = searchValues.get(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not to use remove instead of get? then you won't need the stream below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doubtful comment
4811436
to
4cc7ac1
Compare
Closes #1494