Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not going to Else (False) statement
#2
Solved: 11 Years, 4 Months ago
Hello,

Please try by using the below code:

Code:
If Browser("Wisdom").Page("WisdomLogin").WebElement("Welcome to Wisdom").Exist(5) Then  
       ''Browser Opened successfully in URL
       Reporter.ReportEvent micPass, "Browser in URL: " & DataTable.GlobalSheet.GetCurrentRow, "URL: " & " - opened SUCCESFULLY."
Else
       'Browser Failed to open in URL
        Reporter.ReportEvent micFail,"Browser in URL: " & DataTable.GlobalSheet.GetCurrentRow, "URL: " & " - opened UNSUCCESFULLY."
        Browser("Wisdom").Close
        ExitTest
End If

Regards,
Parminder
Reply


Messages In This Thread
Not going to Else (False) statement - by mv8167 - 06-17-2011, 06:52 PM
RE: Not going to Else (False) statement - by parminderdhiman84 - 06-17-2011, 07:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exist returns false with part of innertext Milindt43 1 2,947 02-23-2011, 09:56 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)