From 43dff2bb89911cbc3dd18a8bef9531d160766854 Mon Sep 17 00:00:00 2001 From: Maya Afanaseva Date: Fri, 22 Dec 2023 11:34:31 +0200 Subject: [PATCH] 4914_cardRefacFix1 --- .../com/epam/jdi/light/angular/elements/complex/Card.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {