Micro Focus QTP (UFT) Forums
xpath - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: xpath (/Thread-xpath)



xpath - rjkmr.aiht - 04-30-2012

hi all

any one please help me for writing xpath for the
provided information

Code:
Set campid = Browser("title:=Campaign Framework:.*").Page("title:=Campaign Framework:.*").webtable("innertext:=Type.*Media Type.*Campaign Series.*","html tag:=table")
Set salesforceerror=browser("title:=Campaign Edit:.*").page("title:=Campaign Edit:.*").webelement("innertext:=Error: Invalid Data. Review all error.*","html tag:=DIV","outertext:=Error: Invalid Data.*")