Shyam5674
Shyam5674

Reputation: 1

How to locate Automation Ids (winium automation) in Chrome legacy window of a desktop application

I'm trying to automate an application that can be hosted on web browsers (Edge,chrome,firefox) and on desktop (windows 10) as well. For browser application I have used selenium tool for automation. In case of desktop application I'm trying to use Winium which works based on detection of object via automation Ids or names.

In my application that is hosted on desktop, the entire window gets displayed as "Chrome Legacy Window", thereby there is no automation Ids or names getting displayed for the application. In such a situation I cannot proceed with automation.

Please help me to resolve this issue.

Upvotes: 0

Views: 1726

Answers (1)

Akilan
Akilan

Reputation: 56

You Could Try using Xpath locators as follows.

driver.find_elements_by_xpath("*[starts-with(@Name, 'Element_')]")

For more details refer this and this.

Upvotes: 0

Related Questions