Not able to search element for Desktop app with Selenium

391 views Asked by At

I am automating the Desktop App which Microsoft based app. Application design is created with many custom view. I am trying to find the element with the tools like Inspect.exe,UISpy.exe. VisualUIAVerify but from all the 3 options I am not able to find the element. Using Inspect.exe I am getting the details but using that Selenium is not performing the actions.

Inspect.exe is showing like this : enter image description here

And My Application UI is Like this:

enter image description here

I want to click on the Highlight Image. But I am not getting any identification for that.

If anyone can help me out with this then it would be gratefull.

1

There are 1 answers

0
Shobhit Agrawal On

With the help of the class name find all the elements and then use the indexing to click on the second element.

IList<WindowsElement> allElement = _driver.FindElementsByClassName("Image");