cancel
Showing results for 
Search instead for 
Did you mean: 

How to refer to HTML element using non-standard attributes

MichalPlich2
Level 4

Hi,

What is the easiest way to refer to HTML element which attributes are not visible in Application Modeller?

See example below. I want to manipulate highlighted div object, and all I know is it's "data-module-id='course-taking'" (I can't get data-module-id in Application modeller)

20242.png

I there an easy no (or amost no-coding) way to do that?

------------------------------
Michal Plich
PD
Nordea
Europe/Oslo
------------------------------
3 REPLIES 3

AndreyKudinov
Level 10
In Chrome you can use xpath, like this - Web Path/XPath: //*[@data-module-id="course-taking"]
Make sure other attributes do not interfere.

p.s. Some xpath expressions won't work, but for most cases it is good enough and much better than IE anyway.

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

Works great.

I've found some missleading info online, saying that it's not possible to use XPath in BP.

Thanks!

------------------------------
Michal Plich
PD
Nordea
Europe/Oslo
------------------------------

It doesn't work with legacy Internet explorer.

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------