diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/Card.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/Card.java index ddeac6cdb8..5e4ee4d992 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/Card.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/Card.java @@ -46,7 +46,7 @@ public UIElement getSubtitle() { @JDIAction("Get if '{name}' has image") public boolean hasImage() { - return find("//img").isExist(); + return core().find("//img").isExist(); } @JDIAction("Get '{name}' image") @@ -85,7 +85,7 @@ public Button getButtonByNumber(int number) { @JDIAction("Get if {name} has align end actions") public boolean actionsEndAlign() { - UIElement e = find("mat-card-actions"); + UIElement e = core().find("mat-card-actions"); if (e.isExist()) { return e.hasClass("mat-mdc-card-actions-align-end"); } else {