diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common/Button.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common/Button.java index 7df6dca530..3c8c66d53b 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common/Button.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/common/Button.java @@ -24,8 +24,7 @@ public boolean focused() { @JDIAction("Get '{name}' color") public String color() { if (core().hasAttribute("color")) { - return AngularColors.fromName(core().attr("color")) - .getColor(); + return AngularColors.fromName(core().attr("color")).getColor(); } return core().getCssValue("background-color"); } @@ -38,8 +37,7 @@ public boolean defaultColor() { @Override @JDIAction("Get '{name}' text") public String getText() { - return core().find(LABEL_LOCATOR) - .text(); + return core().find(LABEL_LOCATOR).text(); } @JDIAction("Get visual type '{name}'") @@ -55,8 +53,7 @@ public ButtonsTypes visualType() { @JDIAction("Get if there is icon inside the button") public boolean hasIcon() { - return !core().finds(ICON_LOCATOR) - .isEmpty(); + return !core().finds(ICON_LOCATOR).isEmpty(); } @JDIAction("Get icon inside the button")