-
-
Notifications
You must be signed in to change notification settings - Fork 88
[extension-selenium] Add step to wait an element with text matching r… #4349
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
[extension-selenium] Add step to wait an element with text matching r… #4349
Conversation
@@ -415,6 +415,23 @@ Then element located by `$locator` exists for `$duration` duration | |||
Then element located by `id(banner)` exists for `PT5S` duration | |||
---- | |||
|
|||
=== Wait element has text matching regex |
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.
=== Wait element has text matching regex | |
=== Wait until element has text matching regular expression |
When I wait until element located by `$locator` has text matching `$regex` | ||
---- | ||
|
||
* `$locator` - The <<_locator>> of the element whose text to check. |
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.
* `$locator` - The <<_locator>> of the element whose text to check. | |
* `$locator` - The <<_locator>> of the element which text to check. |
vividus-extension-selenium/src/main/java/org/vividus/steps/ui/GenericWaitSteps.java
Show resolved
Hide resolved
When I change context to element located by `id(current-horizontal):a` | ||
Then the text matches '\d+' |
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.
When I change context to element located by `id(current-horizontal):a` | |
Then the text matches '\d+' |
Given I am on page with URL `${vividus-test-site-url}/scrollableElements.html` | ||
When I change context to element located by `id(scrollable)` | ||
When I scroll context to RIGHT edge | ||
When I reset context | ||
When I wait until element located by `id(current-horizontal):a` has text matching `\d+` | ||
When I change context to element located by `id(current-horizontal):a` | ||
Then the text matches '\d+' | ||
|
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 it makes sense to update the test scrolling to bottom
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Codecov Report
@@ Coverage Diff @@
## master #4349 +/- ##
============================================
+ Coverage 97.27% 97.29% +0.02%
- Complexity 6330 6341 +11
============================================
Files 886 886
Lines 18193 18229 +36
Branches 1211 1212 +1
============================================
+ Hits 17697 17736 +39
+ Misses 385 384 -1
+ Partials 111 109 -2
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
67a433d
to
7043df0
Compare
Kudos, SonarCloud Quality Gate passed! |
…egex