[wtr-general] Re: Rescue

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
The actual resolution is (drum-roll, please): rescue some code self.exit end Thanks to all who helped! On Apr 27, 3:27 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: You hit the nail on the head, thanks, Adam! I tried using 'break', but the ruby syntax didn't like seeing

[wtr-general] Re: Unable to click on Tabs

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
I'm a no0b, when it comes to things like this, but if the tabs exist in frames, then you can use the id to drill down to the section you want. i.e.: browser.frame(:id, tabs).button(:id, tab1).click Using this method, you don't need to explicity call out the onClick or onFire methods. Given that

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
I'm still, pretty much a no0b, but could these examples help!? @browser.frame(:id, 'detail').text.should include(something here) @browser.frame(:id, '/adsonar_serve/').contains(some constant) For the constantly changing frames, the only suggestion I can give, is to include rescues for frames

[wtr-general] Rescue [Nested?]

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
Can I nest rescues, like one can (normally) nest if statements? For example: #Validates text that should exist on the page. @browser.text.should include?(COMPANY INFORMATION) #Rescues text not found, by refreshing the page rescue Watir::Exception::NoMatchingTextFoundException

[wtr-general] Re: Rescue [Nested?]

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
.2 seconds up until 60 seconds. Charley Baker blog:http://blog.charleybaker.org/ Lead Developer, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Apr 28, 2009 at 11:46 AM, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Can I nest rescues, like one can (normally

[wtr-general] Re: Rescue

2009-04-27 Thread «°¤§ømåtïçCðrp§ë¤°»
stuff when you have no browser (browser = nil) end Alex On 26 Apr 2009, at 07:01, «°¤§ømåtïçCðrp§ë¤°» wrote: I'm running a script, which has a rescue clause, but I want it to (essentially) break, when the rescue clause is invoked. Instead, it runs to the next line: C:\Documents

[wtr-general] Re: Rescue

2009-04-27 Thread «°¤§ømåtïçCðrp§ë¤°»
the script immediately. Am I warm? Thanks, Adam On Apr 27, 1:47 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: Alex, It's not that I don't want the code to run, at all, but only if it successfully binds/attaches to the browser. My issue is that it's rescueing the error