Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expression in html
#1
Not Solved
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic obj rep - get text in the class (html) marcio cravo moreira 0 2,146 05-26-2015, 06:58 PM
Last Post: marcio cravo moreira
  Excel to HTML results keerthi286 1 2,759 04-19-2013, 08:21 AM
Last Post: basanth27
  if double quotes comes in outer html sujaravi123 3 6,898 10-18-2012, 10:16 AM
Last Post: harishshenoy
  Can I use html id as an unique identifier for all the components in a web page qtplearner88 8 8,600 05-21-2012, 06:52 PM
Last Post: falvi
  Identifying radio buttons with same html ID but dynamic webelement properties manishac 12 13,889 05-03-2012, 06:27 AM
Last Post: manishac

Forum Jump:


Users browsing this thread: 2 Guest(s)