Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5329 replace thid.find to core().find #5456

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading