WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Unable to automatically scroll/move an element, which is not in view by findElementByAccessibilityId()

Open angad16 opened this issue 6 years ago • 5 comments

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 ?

angad16 avatar Jan 24 '20 07:01 angad16

which version of win app driver are u using

anunay1 avatar Jan 24 '20 14:01 anunay1

Hi @anunay1 , i am using v1.1

angad16 avatar Jan 24 '20 17:01 angad16

trying adding some delay before you try to click

anunay1 avatar Jan 27 '20 08:01 anunay1

it is working the same @anunay1

angad16 avatar Jan 27 '20 12:01 angad16

What type of application are you testing? UWP, WinForms, or WPF?

naeemakram avatar Jan 29 '20 12:01 naeemakram