@id~'(?i: Issue

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
regex
Posts: 48
Joined: Tue Aug 14, 2012 5:47 pm

@id~'(?i: Issue

Post by regex » Mon Nov 12, 2012 7:24 pm

Code: Select all

.//tr[@id~'(?i:StringGrid_ctl00__0)']/td[2]
I am using this @ID with @id~'(?i: to find an element that has a dynamic path. The static part of the path set is the "StringGrid_ctl00__0"

I have a similar grid on the page further down.

Code: Select all

//tr[#'ctl00_ctl00_Content_ContentPlaceHolderMain_ReportGrid_ctl00_ctl06_ctl00_PrelimByMonthReportGrid_ctl00__0']/td[@innertext='$']
I need to say does this path include ContentPlaceHolderMain_ReportGrid and PrelimByMonthReportGrid. How do I do this using the @id~'(?i: arrangement?

Thank you. You've all been helpful.

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: @id~'(?i: Issue

Post by Ciege » Mon Nov 12, 2012 9:09 pm

?i is a case insensitive search. Not sure that is what you are trying to do...

Looks like maybe you want to do an ends with search... Something like

Code: Select all

tr[@id~'.*StringGrid_ctl00__0$']
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...