Yes I beleve so

On Apr 14, 10:42 am, keith shaw <[email protected]> wrote:
> I just took a look at the test and realized I di have a browser.close at the
> end of the first test.  Now I realize that framework tries to start the
> second test where the first one leaves off.  Is it supposed to reset the
> browser to url specified in the environments file?
>
> -Keith
>
> On Tue, Apr 14, 2009 at 12:31 PM, Bret Pettichord <[email protected]>wrote:
>
>
>
>
>
> > 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<http://www.io.com/%7Ewazmo/blog>
> > Twitter,www.twitter.com/bpettichord
>
> > Watir Training: Portland/Beaverton April 16-17
> >www.watircraft.com/training- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to