-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vividus-plugin-web-app] Add ability to work with invisible elements …
…in nested steps
- Loading branch information
Showing
5 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
vividus-tests/src/main/resources/story/integration/GenericNestedSteps.story
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Description: Integration tests for GenericNestedSteps class. | ||
|
||
Meta: | ||
@epic vividus-extension-selenium | ||
|
||
|
||
Scenario: Verify step: When I find $comparisonRule `$number` elements `$locator` and while they exist do up to $iterationLimit iteration of$stepsToExecute | ||
Meta: | ||
@requirementId 2054 | ||
|
||
Given I am on a page with the URL '${vividus-test-site-url}/elementState.html' | ||
When I find > `0` elements `id(element-to-hide)` and while they exist do up to 10 iteration of | ||
|step | | ||
|When I click on element located `id(button-hide)`| |
21 changes: 8 additions & 13 deletions
21
vividus-tests/src/main/resources/story/integration/NestedSteps.story
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
Description: Integration tests for GenericNestedSteps class. | ||
|
||
Meta: | ||
@epic vividus-extension-selenium | ||
|
||
|
||
Scenario: Verify step: When I find $comparisonRule `$number` elements `$locator` and while they exist do up to $iterationLimit iteration of$stepsToExecute | ||
Meta: | ||
@requirementId 2054 | ||
|
||
Given I am on a page with the URL '${vividus-test-site-url}/elementState.html' | ||
When I find > `0` elements `id(element-to-hide)` and while they exist do up to 10 iteration of | ||
|step | | ||
|When I click on element located `id(button-hide)`| | ||
@epic vividus-plugin-web-app | ||
|
||
Scenario: Verify step "When I find $comparisonRule '$number' elements by $locator and for each element do$stepsToExecute" | ||
Given I am on a page with the URL 'https://demo.guru99.com/' | ||
When I find = `5` elements by `By.xpath(//head/link[contains(@href,'V4/css')]):a` and for each element do | ||
|step | | ||
|When I set 'rel' attribute value of the context element to the 'scenario' variable 'relValue' | | ||
|Then `${relValue}` is equal to `stylesheet` | |