Unable to automatically scroll/move an element, which is not in view by findElementByAccessibilityId()
I am trying to automate Microsoft Store and while doing so , i want to scroll to an element which is currently not in view , i tried using findElementByAccessibilityId of an app and i am able to find it but it doesn't gets clicked or scrolled to that element Error : org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameter
if (driver.findElementsByName("Maximize Microsoft Store").size() > 0) { driver.findElementByAccessibilityId("Maximize").click(); }
WebElement ele = driver.findElementByAccessibilityId("9PB2MZ1ZMB1S"); // this is the id of itunes app which is not in view
Can you please help me ?
which version of win app driver are u using
Hi @anunay1 , i am using v1.1
trying adding some delay before you try to click
it is working the same @anunay1
What type of application are you testing? UWP, WinForms, or WPF?