WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

[Help] How to identify elements which are not visible in inspect.exe

Open sachinrupadhyay opened this issue 7 years ago • 5 comments

Hi, We have a windows desktop based application which is built on WPF. I was trying to Automate the same using WinAppDriver, in Java language (grovvy to be specific) However, there are lot of instances where we are not able to locate certain elements, either by any of the locators. I am not much aware of WPF, and i heard there is something called controls.

Now when i tried our application to automate using Ranorex, the same UI elements which was not visible in inspect.exe, Ranorex easily identifies them.

Please guide how such elements can be identified in WinAppDriver

sachinrupadhyay avatar May 24 '19 09:05 sachinrupadhyay

Did you try the (WinAppDriver) UIRecorder? It generates XPath strings you may find useful.

Hilarius86 avatar May 24 '19 16:05 Hilarius86

Even with UIRecorder I couldn't able to locate the item. excelcontrol I'm trying to locate the dropdown control in an Microsoft Excel cell and couldn't able to locate that control neither by inspect.exe nor by UIRecorder. Is there any other way to locate this item? Any help here is appreciated.

Punniyakotti avatar May 29 '19 09:05 Punniyakotti

Hi @sachinrupadhyay and @Punniyakotti,

please try out @JunlinZhu's workaround here and let us know if that does the trick.

hassanuz avatar Jun 13 '19 20:06 hassanuz

This does not answers my question @hassanuz

insachin avatar Jun 04 '20 21:06 insachin

Any one has solution for this issue?

sangvvan avatar Nov 14 '21 14:11 sangvvan