Are custom HTML5 attributes supported (data-*)? : Object Identification and Technologies

Are custom HTML5 attributes supported (data-*)?

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

Are custom HTML5 attributes supported (data-*)?

Postby mgladkov » Fri Dec 02, 2011 11: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!
mgladkov
 
Posts: 1
Joined: Fri Dec 02, 2011 11:53 am

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

Postby Support Team » Fri Dec 02, 2011 12:17 pm

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
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests