File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .epam .jdi .light .angular .elements .common ;
2
2
3
3
import com .epam .jdi .light .angular .asserts .SlideToggleAssert ;
4
+ import com .epam .jdi .light .common .JDIAction ;
4
5
import com .epam .jdi .light .elements .base .UIBaseElement ;
5
6
import com .epam .jdi .light .elements .common .Label ;
6
7
import com .epam .jdi .light .elements .common .UIElement ;
@@ -37,16 +38,19 @@ public Label label() {
37
38
return new Label ().setCore (Label .class , core ().find ("//label" ));
38
39
}
39
40
41
+ @ JDIAction ("Get if '{name}' element label is in before position" )
40
42
public boolean hasLabelBeforePosition () {
41
43
return core ().find (FORM_FIELD_LOCATOR ).hasClass ("mdc-form-field--align-end" );
42
44
}
43
45
46
+ @ JDIAction ("Turn on the '{name}' switch button" )
44
47
public void check () {
45
48
if (!isSelected ()) {
46
49
core ().find (BUTTON_LOCATOR ).click ();
47
50
}
48
51
}
49
52
53
+ @ JDIAction ("Turn off the '{name}' switch button" )
50
54
public void uncheck () {
51
55
if (isSelected ()) {
52
56
core ().find (BUTTON_LOCATOR ).click ();
You can’t perform that action at this time.
0 commit comments