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
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
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
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
.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
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
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