I wonder why the browser is being closed after the first test. The
framework doesn't do this. Does your test?
Bret
keith shaw wrote:
> I have begun using the watir craft tool to run my test on mac os x in
> safari. Running just one test by itself works fine. As soon as I add
> a second test to my suite I see a weird behavior. The first test ends
> fine and closes the brower, the problem is that another browser is
> never launched to run the second test. I eventually see this stack
> trace :
>
> Given I am on the properties tab of the photo book studio #
> lib/steps/photobook_steps.rb:1
> CommandError
> OSERROR: -609
> MESSAGE: Connection is invalid.
> COMMAND:
> app("/Applications/Safari.app").do_JavaScript("\nfunction
> dispatchOnChange(element) {\n var event =
> document.createEvent('HTMLEvents');\n event.initEvent('change', true,
> true); \n element.dispatchEvent(event);\n}\n(function() {\n var
> element = document.getElementById('contentBuilder');\nif (element)
> {\n return element.fireFunFXEvent({parent: null, id: {id:
> 'titleField'}}, \"Input\", \"PhotobookTitle\")\n} else {\n return
> '__safari_watir_element_unfound__';\n}\n})()",
> {:in=>app("/Applications/Safari.app").documents[1]})
> (Appscript::CommandError)
> ./lib/steps/photobook_steps.rb:5:in `/^I am on the properties
> tab of the photo book studio$/'
> test/features/PhotoBook/photobook_trim_size.feature:6:in `Given
> I am on the properties tab of the photo book studio'
>
>
> Is this something I am doing or is a bug with the safari browser and
> watircraft?
>
> -Keith
>
> >
--
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord
Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---