Skip to content

Commit

Permalink
CR remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-kerem committed Oct 31, 2024
1 parent 2c790b6 commit d18d739
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ public Builder withScrollLimit(int scrollLimit) {
return this;
}

/**
* Only used for native app testing
*
* @param scrollElement WebElement to scroll to
* @return Builder instance
*/
public Builder withScrollElement(WebElement scrollElement) {
this.scrollElement = ((RemoteWebElement) scrollElement).getId();
return this;
Expand Down Expand Up @@ -122,6 +128,11 @@ public String getScrollElement() {
return scrollElement;
}

/**
* Only used for native app testing
*
* @param scrollElement WebElement to scroll to
*/
public void setScrollElement(WebElement scrollElement) {
this.scrollElement = ((RemoteWebElement) scrollElement).getId();
}
Expand Down

0 comments on commit d18d739

Please sign in to comment.