WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

how to get element list?

Open gotitgit opened this issue 2 years ago • 6 comments

I want to click this button image image

but I can't get a list of buttons. how to get it?

I tried this but fail ` String xpath = "/Pane[@ClassName="#32769"][@Name="데스크톱 1"]/Window[@ClassName="#32770"][@Name="네이버 MYBOX 탐색기"]";

List<WebElement> list = (List<WebElement>) winapp.findElementsByXPath(xpath);`

gotitgit avatar Oct 11 '23 06:10 gotitgit

What is shown in inspect.exe?

anunay1 avatar Oct 11 '23 08:10 anunay1

What is shown in inspect.exe?

this is it

image

image

gotitgit avatar Oct 11 '23 08:10 gotitgit

You can use automation id 30100.

anunay1 avatar Oct 11 '23 08:10 anunay1

You can use automation id 30100.

But the ID of all buttons is 30100. I want to press the button I want.

image

gotitgit avatar Oct 11 '23 09:10 gotitgit

If the UI is static then you can click by index, if not then ask the application developer to implement automation properties.

anunay1 avatar Oct 11 '23 09:10 anunay1

If the UI is static then you can click by index, if not then ask the application developer to implement automation properties.

Thanks for your comment

gotitgit avatar Oct 11 '23 09:10 gotitgit