WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Unable to select element (list item) in List if is not visible (needs to scroll in order to get visible)

Open FBorges14 opened this issue 8 years ago • 2 comments

I'm not able to select an element that is not visible on a list. Is necessary to do scroll in order it gets visible and select it.

Is there any way to do it is a more easy way?

FBorges14 avatar Jan 26 '18 11:01 FBorges14

Hi @FBorges14,

When a list element is dynamically generated, Windows Application Driver will not be able to see/find/locate it until it is in fact constructed and added to the UI tree. In such case, you would really need to scroll the list or move the cursor with keyboard arrow to trigger the construction just as what a user would do.

timotiusmargo avatar Jan 26 '18 22:01 timotiusmargo

alternatively you can try appium API To move mouse to desired element before performing any action. It worked for me. Something like this. Actions action = new Actions(session);
action.moveToElement(WebElement);
action.perform();

AmitVerma4HP avatar May 01 '18 21:05 AmitVerma4HP