Page 1 of 1

Are custom HTML5 attributes supported (data-*)?

Posted: Fri Dec 02, 2011 10:56 am
by mgladkov
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!

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

Posted: Fri Dec 02, 2011 11:17 am
by Support Team
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