-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5486 from jdi-testing/5347
#5347 change locators
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
17 changes: 9 additions & 8 deletions
17
jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TabPage.java
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,25 +1,26 @@ | ||
package io.github.com.pages.navigation; | ||
|
||
import com.epam.jdi.light.elements.common.UIElement; | ||
import com.epam.jdi.light.elements.composite.WebPage; | ||
import com.epam.jdi.light.elements.pageobjects.annotations.locators.UI; | ||
import com.epam.jdi.light.material.elements.layout.Container; | ||
import com.epam.jdi.light.material.elements.navigation.Tabs; | ||
|
||
public class TabPage extends WebPage { | ||
|
||
@UI("h2+div[1] .MuiTabs-root") | ||
@UI("//h2[text()='Simple tabs']/following::div//div[@class='MuiTabs-root']") | ||
public static Tabs simpleTabs; | ||
|
||
// @todo #5297 Fix locator to be more stable for layout | ||
@UI("//div[./h2[text()='Simple tabs']]/div[1]/div[@role='tabpanel' and not(@hidden)]") | ||
public static Container simplePanels; | ||
// @todo #5347 Box control should be added as a Container https://v4.mui.com/api/container/ | ||
// test page also exists https://jdi-testing.github.io/jdi-light/material/box_layout | ||
@UI("//h2[text()='Simple tabs']/following::div/div[@role='tabpanel' and not(@hidden)]") | ||
public static UIElement simplePanels; | ||
|
||
@UI("h2+div[2] .MuiTabs-root") | ||
@UI("//h2[text()='Scrollable tabs']/following::div//div[@class='MuiTabs-root']") | ||
public static Tabs scrollableTabs; | ||
|
||
@UI("h2+div[3] .MuiTabs-root") | ||
@UI("//h2[text()='Prevent scroll buttons']/following::div//div[@class='MuiTabs-root']") | ||
public static Tabs preventScrollTabs; | ||
|
||
@UI("h2+div[4] .MuiTabs-root") | ||
@UI("//h2[text()='Vertical tab']/following::div//div[contains(@class,'MuiTabs-root')]") | ||
public static Tabs verticalTabs; | ||
} |
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