Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added close browser method #2

Merged
merged 4 commits into from
Dec 1, 2011
Merged

added close browser method #2

merged 4 commits into from
Dec 1, 2011

Conversation

homanchou
Copy link
Contributor

firefox was left open on subsequent tests, added method to close watir browser

@tanin47
Copy link
Owner

tanin47 commented Oct 28, 2011

I leave it open so that user can observe javascript errors through Firebug, otherwise we have no way to do that.

What do you think?

@homanchou
Copy link
Contributor Author

Oh I see. Then perhaps you can allow these browser open and close options
to be user customized in the spec_helper as part of the setup, similar to
how database_cleaner gem does it: https://github.com/bmabey/database_cleaner

Or, another idea is to make closing of the browser the default (Because many
times as I develop I run the test over and over again and I will sometimes
get an error if I forget to close the previous browser, or it's just a
surprise to see a collection of firefox icons building up in my task bar.),
but keep the browser open on a per test basis as needed by adding something
like 'save_and_open_page' similar to capybara works with launchy gem. In
which case the browser should stay open at that point and any subsequent
tests in the test suite should use a different browser instance instead
otherwise the same browser will be driven to a different page, yes?

Homan

On Fri, Oct 28, 2011 at 3:42 AM, Tanin Na Nakorn <
reply@reply.github.com>wrote:

I leave it open for future debugging through Firefox, otherwise we have no
way to observe javascript errors.

What do you think?

Reply to this email directly or view it on GitHub:

#2 (comment)

@tanin47
Copy link
Owner

tanin47 commented Nov 2, 2011

I agree with you. Right now I'm extremely busy with my new website, gamling.org (relieving flooding in Thailand).

I will probably make the change soon, or you could do another pull request. Either way is fine.

tanin47 pushed a commit that referenced this pull request Dec 1, 2011
added close browser method
@tanin47 tanin47 merged commit 2c64fdf into tanin47:master Dec 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants