12-31-2013, 03:00 PM
(This post was last modified: 12-31-2013, 03:01 PM by sujaravi123.)
below given are the properties of a webtable
when i gave
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?
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?