Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to verriy Class in Mercury tour
#2
Not Solved
Regular Expression will not be helpful here. It would match the webelement, but then be unable to output the correct checkpoint. Best option would be an if statement and use the Exists function
Code:
if Browser("Welcome: Mercury Tours").Page("Book a  Flight:Mercury").WebElement("Business").Exists(5) then
  Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebElement("Business").Output CheckPoint("Business_3")
else if Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebElement("Business_2").Exists(5) then
   Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebElement("Business_2").Output CheckPoint("Business_4")
end if

Hope this helps.
Reply


Messages In This Thread
RE: How to verriy Class in Mercury tour - by jsknight1969 - 01-05-2011, 03:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cant create activex object for Mercury.ObjectRepositoryUtil in Windows 7 64-bit gtamboli 3 5,295 11-14-2012, 08:34 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)