Page 1 of 1
@id~'(?i: Issue
Posted: Mon Nov 12, 2012 7:24 pm
by regex
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.
Re: @id~'(?i: Issue
Posted: Mon Nov 12, 2012 9:09 pm
by Ciege
?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