s_sakthivel
10 years agoOccasional Contributor
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
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