Are custom HTML5 attributes supported (data-*)?

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
mgladkov
Posts: 1
Joined: Fri Dec 02, 2011 10:53 am

Are custom HTML5 attributes supported (data-*)?

Post by mgladkov » Fri Dec 02, 2011 10:56 am

I'm wondering, if I can use custom HTML5 attributes, when searching a website?

I've tried different XPath's, but Ranorex always says that no elements are found.

So, is there a possibility to get results from such XPath: ".//a[@data-id]='1'"?

Thank you for your responses!

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Are custom HTML5 attributes supported (data-*)?

Post by Support Team » Fri Dec 02, 2011 11:17 am

Hi,

For sure this is possible. Please open following webpage http://www.coldfusionjedi.com/demos/201 ... /test3.cfm
and use this RxPath in Spy
/dom[@domain='www.coldfusionjedi.com']/body/div/div[@data-id='10']
Regards,
Peter
Ranorex Team