I was going to agree with Chuck, but actually the framework doesn't do that right now. Clearly it should.
I think you can correct this by adding the following to your steps file: Before do goto '' end Bret keith shaw wrote: > Do I need to do anything to make sure that happens? Currently it's > not working. > > -Keith > > On Tue, Apr 14, 2009 at 2:00 PM, Chuck van der Linden > <sqa...@gmail.com <mailto:sqa...@gmail.com>> wrote: > > > Yes I beleve so > > On Apr 14, 10:42 am, keith shaw <keithsha...@gmail.com > <mailto:keithsha...@gmail.com>> 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 > <b...@pettichord.com <mailto:b...@pettichord.com>>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 <http://www.watircraft.com> > > > Lead Developer, Watir,www.watir.com <http://www.watir.com> > > > Blog,www.io.com/~wazmo/blog > <http://www.io.com/%7Ewazmo/blog><http://www.io.com/%7Ewazmo/blog> > > > Twitter,www.twitter.com/bpettichord > <http://www.twitter.com/bpettichord> > > > > > Watir Training: Portland/Beaverton April 16-17 > > >www.watircraft.com/training- > <http://www.watircraft.com/training-> Hide quoted text - > > > > - Show quoted text - > > > > > -- 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---