-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathBadgePage.java
40 lines (28 loc) · 1.4 KB
/
BadgePage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package io.github.com.pages.displaydata;
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.displaydata.Badge;
import com.epam.jdi.light.material.elements.inputs.Switch;
import com.epam.jdi.light.ui.html.elements.common.Button;
import java.util.List;
public class BadgePage extends WebPage {
@UI("#primaryColorBadge")
public static Badge primaryColorBadgeContainer;
@UI("#errorColorBadge")
public static Badge errorColorBadgeContainer;
@UI("#secondaryColorBadge")
public static Badge secondaryColorBadgeContainer;
// @todo #5297 Button should be used from ButtomGruop, not directly as single
@UI(".MuiButtonGroup-root button[aria-label='reduce']")
public static Button buttonReduce;
@UI(".MuiButtonGroup-root button[aria-label='increase']")
public static Button buttonIncrease;
@UI("//span[text()='Show Zero']/preceding-sibling::span[contains(@class,'MuiSwitch-root')]")
public static Switch switchShowZero;
@UI("#dotBadge")
public static Badge dotBadgeContainer;
@UI("//span[text()='Show Badge']/preceding-sibling::span[contains(@class,'MuiSwitch-root')]")
public static Switch switchShowBadge;
@UI("//span[text()='Show Badge']/following::span[@class='MuiBadge-root']")
public static List<Badge> badgeDifferentPosition;
}