Xpath not case sensitive : Object Identification and Technologies

Xpath not case sensitive

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

Xpath not case sensitive

Postby swmatisa » Fri Sep 30, 2011 1:53 pm

Code: Select all
tree/treeitem[@accessiblename=$machine]


My problem is that I need a non case sensitive equality with the variable($machine) content. Is this possible?

I see that there is regex, but how put the variable $machine in the regex?

Thans for your help

Regards
SW
swmatisa
 
Posts: 54
Joined: Fri Aug 05, 2011 8:52 am

Re: Xpath not case sensitive

Postby Ciege » Fri Sep 30, 2011 4:49 pm

Try something like this:

Code: Select all
tree/treeitem[@accessiblename~'" + machine + "']
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: Xpath not case sensitive

Postby swmatisa » Tue Oct 04, 2011 8:48 am

Hello,

The working solution is:
Code: Select all
tree/treeitem[@accessiblename~'(?i:'+$machine+')']
SW
swmatisa
 
Posts: 54
Joined: Fri Aug 05, 2011 8:52 am


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests