From 00414e57ec21df2be75930092653a71ef408a94a Mon Sep 17 00:00:00 2001 From: Natalia Pozhidaeva Date: Thu, 11 Apr 2024 21:55:14 -0500 Subject: [PATCH] #5329 replace thid.find to core().find --- .../mobile/elements/base/MobileUIElement.java | 1 + .../mobile/elements/base/MobileUIElement.java | 1 + .../jdi/light/vuetify/elements/common/Input.java | 16 ++++++++-------- .../vuetify/elements/complex/SlideGroup.java | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/jdi-light-mobile-selenium3/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java b/jdi-light-mobile-selenium3/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java index 68adb1ca33..31a76194e7 100644 --- a/jdi-light-mobile-selenium3/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java +++ b/jdi-light-mobile-selenium3/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java @@ -164,6 +164,7 @@ public MobileWebList findsMobileElements(@MarkupLocator By by) { return $$(by, this).setName(getName()); } + // @todo #5329 core should be used with find @Override public MobileUIElement firstChild() { return this.find("*"); diff --git a/jdi-light-mobile/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java b/jdi-light-mobile/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java index 5e40199444..51f9996705 100644 --- a/jdi-light-mobile/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java +++ b/jdi-light-mobile/src/main/java/com/epam/jdi/light/mobile/elements/base/MobileUIElement.java @@ -175,6 +175,7 @@ public MobileWebList findsMobileElements(@MarkupLocator By by) { return $$(by, this).setName(getName()); } + // @todo #5329 Replace with core().find @Override public MobileUIElement firstChild() { return this.find("*"); diff --git a/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/common/Input.java b/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/common/Input.java index f4542ff723..2689c44e1d 100644 --- a/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/common/Input.java +++ b/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/common/Input.java @@ -46,35 +46,35 @@ public InputAssert is() { public UIElement input() { - return this.find(INPUT); + return core().find(INPUT); } public Label label() { - return new Label().setCore(Label.class, this.find(LABEL)); + return new Label().setCore(Label.class, core().find(LABEL)); } private UIElement slot() { - return this.find(SLOT); + return core().find(SLOT); } private UIElement prependOuterIcon() { - return this.find(PREPEND_OUTER); + return core().find(PREPEND_OUTER); } private UIElement prependInnerIcon() { - return this.find(PREPEND_INNER); + return core().find(PREPEND_INNER); } private UIElement appendOuterIcon() { - return this.find(APPEND_OUTER); + return core().find(APPEND_OUTER); } private UIElement appendInnerIcon() { - return this.find(APPEND_INNER); + return core().find(APPEND_INNER); } private UIElement switchSelectionControl() { - return this.find(SWITCH_SELECTION_CONTROL); + return core().find(SWITCH_SELECTION_CONTROL); } @Override diff --git a/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/SlideGroup.java b/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/SlideGroup.java index 7c670b7518..0f51dcf559 100644 --- a/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/SlideGroup.java +++ b/jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/SlideGroup.java @@ -55,7 +55,7 @@ public boolean isPreviousButtonDisabled() { // Check the page from the header, there is an example with buttons @JDIAction("Get {name}'s slides") public WebList slides() { - return this.finds(".v-card"); + return core().finds(".v-card"); } @JDIAction("Get position of the '{name}'")