A
A
Alexey Nazarenko2019-08-02 01:50:09
Automation
Alexey Nazarenko, 2019-08-02 01:50:09

How to search for UI elements of a desktop application that are not visible to Inspect and Vinium?

Good day to all readers!
At work, we set the task of automating testing of the UI of a desktop application. I write autotests in C# using the framework from 2GIS - Winium. To search for UI elements, I use Inspect, which is part of Windows Kits, or Winium. So, when searching for elements, I almost immediately ran into a problem: some elements cannot be found either by Inspect or by Winium.
Here is an example of one of the forms:
5d436c8bb1ee1479747312.png
Inspect in this case does not see the tab (highlighted in yellow), which is why you have to come up with all sorts of workarounds, such as using hotkeys or shifting focus from one element to another through tabulation.
OS: Windows Server 2008 R2. Autotests are developed and debugged on a remote machine.
Can you please tell me if there is any way to access such elements?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Krivenko, 2019-08-25
@WannaCode

Through the Win API, you can find anything, even the Start button. There is a book "Programming in C ++ through the eyes of a hacker.", which in the first chapters tells how to do it.

B
BaredJJ87, 2019-09-06
@BaredJJ87

Have you considered UI Automation and TestStack White?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question