Hello Ogre,

Thank you for your answer.  You certainly have given us a direction.  But, 
after a few trials, we finally adopted a particular method to solve the 
problem.  We have attempted to click the 'Back' arrow of IE through the 
'ie.back' command.  If the link has opened in a different page, Watir will 
throw an exception as the 'back' arrow will not be in an 'enabled' state to be 
clicked.  Using this exception, we find out whether the link has opened in the 
same page or a new page.  If the link has opened in the new page, we attach to 
the page through the command, 'ie_new = Watir::IE.attach(:url,/http/)' and then 
we fetch its 'URL' through the command, 'destination_url = ie_new.url'.  

Hope I have not wasted your time.  Before completing, I just want to know 
whether there is any option in Watir to find out whether the 'back' arrow is 
enabled or not?

Thanks,
Maloy.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6123&messageID=17520#17520
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to