0

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.

curveball
  • 4,320
  • 15
  • 39
  • 49
Shyam5674
  • 1
  • 2

1 Answers1

0

You Could Try using Xpath locators as follows.

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

For more details refer this and this.

Akilan
  • 21
  • 3
  • Thanks for your reply Akilan. Please look in to this for the actual problem - [here] [https://github.com/2gis/Winium.Desktop/issues/258]. UISpy tool itself displays that entire native desktop app page as "chrome legacy window". In that case even if i could locate the parent page based on Xpath locator, any idea how i could locate the child objects? Any help would be really appreciated. – Shyam5674 Sep 18 '18 at 12:24