Micro Focus QTP (UFT) Forums
regular expression in html - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: regular expression in html (/Thread-regular-expression-in-html)



regular expression in html - sujaravi123 - 12-31-2013

below given are the properties of a webtable

Code:
"Class Name:=WebTable",
"abs_x:=356",
"abs_y:=393",
"border:=0",
"class:=rightTable",
"cols:=2",
"column names:=DLProd3\.\.\.;Prod Ve\.\.\.",
"height:=61",
"html id:=",
"html tag:=TABLE",
"innerhtml:=<TBODY><TR style=""HEIGHT: 26px""><TD class=custName><A style=""TEXT-DECORATION: none"" id=rightClickDisable class=rightClickDisable1 title=""DLProd3 - Test"" href=""#""><FONT style=""FONT-FAMILY: Arial, Helvetica, sans-serif"" size=2>DLProd3\.\.\. </FONT></A></TD><TD class=custName><A style=""TEXT-DECORATION: none"" id=rightClickDisable class=rightClickDisable1 title=""Prod Verify - Test"" href=""#""><FONT style=""FONT-FAMILY: Arial, Helvetica, sans-serif"" size=2>Prod Ve\.\.\. </FONT></A></TD></TR><TR><TD><INPUT id=""Atlanta-PPM                   _1"" type=checkbox name=""selectAll_Atlanta-PPM                   _42843""> </TD><TD><INPUT id=""Atlanta-PPM                   _2"" type=checkbox name=""selectAll_Atlanta-PPM                   _43081""> </TD></TR></TBODY>",
"innertext:=DLProd3\.\.\. Prod Ve\.\.\.   ",
"name:=DLProd3\.\.\. "


when i gave

Code:
if(Browser("Title:=Administer Staff Accounts - Add, Change or Remove an Account").Page("Title:=Administer Staff Accounts - Add, Change or Remove an Account").webtable("class:=rightTable","column names:=DLProd3\.\.\.;Prod Ve\.\.\.","html tag:=TABLE","innerhtml:=.*Atlanta-PPM.*").exist)then



Code:
reporter.ReportEvent micPass,step1,"The custormer DLProd3is present for the market Atlanta_PPM"
               else


    reporter.ReportEvent micFail,step1"The custormer DLProd3 is not  present for the market Atlanta_PPM"

End If

it takes to else condition,

but if I remove the "innerhtml:=.*Atlanta-PPM.*" from identification properties it passes and identifies the object.Any idea why?

does regexp not work with innerhtml?