znsio / teswiz

End-2-End framework for Native & Web Automation using Cucumber-jvm, Appium, Selenium WebDriver, Applitools & ReportPortal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update ScrollInDynamicLayer() to use the size of inner dropdown instead of entire mobile screen

snehith07 opened this issue · comments

ScrollInDynamicLayer() method in the driver class should get the size(height & width) of the pop-up/inner dropdown/dynamic layer screen instead of getting the size of the whole mobile screen for scrolling.

Need to change this:
public void scrollInDynamicLayer(Direction direction) {
Dimension dimension = driver.manage().window().getSize();
}