Skip to main content
1-Visitor
July 25, 2018
Solved

Identify Xpaths of Thingworx Application

  • July 25, 2018
  • 3 replies
  • 1634 views

Hi all,

 

How to identify the xpaths of Thingworx based IOT application. Whenever i try to use ID's, the ID are dynamic so the Xpath fails. Please suggest how can i identify the Xpaths to automate the Thingworx IOT application. I am using selenium webdriver to automate the application.

 

Thanks & Regards

Best answer by PaiChung

The Widget IDs shouldn't be changing, what ID are you using?

You should be able to inspect the page source or use developer tools and the DOM should be the same each time it loads, except for Collection/Repeater widget content.

3 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
July 25, 2018

The Widget IDs shouldn't be changing, what ID are you using?

You should be able to inspect the page source or use developer tools and the DOM should be the same each time it loads, except for Collection/Repeater widget content.

1-Visitor
July 29, 2018

Thanks for the response. I am identifying using class name right now. There are instances like The span tag text is having a <br> tag in between so the text is not getting identified. Please suggest what can be solution for this.

1-Visitor
July 30, 2018

I need to confirm whether we can use selenium to identify the colors in the application. Please suggest the right tool to identify the color in Thingworx Application.