Forum Discussion

s_sakthivel's avatar
s_sakthivel
Occasional Contributor
10 years ago

Html table contains particular string but find method fails to find it

HTML table contains "2455/00004205/000/00" but else condition is executed.



if Sys.Browser("iexplore").Page("http://10.105.63.21/PolicyOnline/Products/Portal/MarineCargo/frmMarinePortal_Menu.aspx").Form("PortalWebMenu").Table("Table3").Cell(0, 0).Panel("MyDiv").Frame("MyFrame").Form("frmPolicyInfo").Table(0).Cell(2, 0).Table(0).Cell(0, 0).Table("dgPolicyDtls").Find("2455/00004205/000/00", "contentText", 1000).exists =true then

Log.Message "Exists"

 Else


Log.Message "Please enter valid policy no"


End If

1 Reply


  • Hi,



     Sys.Browser("iexplore").Page("*").Find("ContentText", "2455/00004205/000/00",1000,True).Exists



    Regards,