Skip to content

Commit 6fc0e6f

Browse files
author
Igor Vlasiuk
committed
@JDIAction
1 parent 9edfd90 commit 6fc0e6f

File tree

1 file changed

+4
-0
lines changed
  • jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common

1 file changed

+4
-0
lines changed

jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common/SlideToggle.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.epam.jdi.light.angular.elements.common;
22

33
import com.epam.jdi.light.angular.asserts.SlideToggleAssert;
4+
import com.epam.jdi.light.common.JDIAction;
45
import com.epam.jdi.light.elements.base.UIBaseElement;
56
import com.epam.jdi.light.elements.common.Label;
67
import 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();

0 commit comments

Comments
 (0)