Skip to content

Commit

Permalink
Merge pull request #5456 from jdi-testing/5329
Browse files Browse the repository at this point in the history
#5329 replace thid.find to core().find
  • Loading branch information
pnatashap authored Apr 12, 2024
2 parents 82a1d4f + 00414e5 commit 8f6b2e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}'")
Expand Down

0 comments on commit 8f6b2e2

Please sign in to comment.