Skip to main content
Jul 25, 2018 9:05 AM UTC
Solved

Identify Xpaths of Thingworx Application

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

PaiChungAnswer
Jul 25, 2018 11:38 AM UTC

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

PaiChungAnswer
Jul 25, 2018 11:38 AM UTC

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.

Jul 29, 2018 8:56 AM UTC

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.

Jul 30, 2018 7:11 AM UTC

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.