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 11package com .epam .jdi .light .angular .elements .common ;
22
33import com .epam .jdi .light .angular .asserts .SlideToggleAssert ;
4+ import com .epam .jdi .light .common .JDIAction ;
45import com .epam .jdi .light .elements .base .UIBaseElement ;
56import com .epam .jdi .light .elements .common .Label ;
67import com .epam .jdi .light .elements .common .UIElement ;
@@ -37,16 +38,19 @@ public Label label() {
3738 return new Label ().setCore (Label .class , core ().find ("//label" ));
3839 }
3940
41+ @ JDIAction ("Get if '{name}' element label is in before position" )
4042 public boolean hasLabelBeforePosition () {
4143 return core ().find (FORM_FIELD_LOCATOR ).hasClass ("mdc-form-field--align-end" );
4244 }
4345
46+ @ JDIAction ("Turn on the '{name}' switch button" )
4447 public void check () {
4548 if (!isSelected ()) {
4649 core ().find (BUTTON_LOCATOR ).click ();
4750 }
4851 }
4952
53+ @ JDIAction ("Turn off the '{name}' switch button" )
5054 public void uncheck () {
5155 if (isSelected ()) {
5256 core ().find (BUTTON_LOCATOR ).click ();
You can’t perform that action at this time.
0 commit comments