Skip to content

Leave Browser Instance Open Per Test Instance #4

Description

@mhemesath

Currently the browser opens and closes between each test method run. Closing the browser requires reopening it for the next method, navigating to the base_url, and logging in. Sometimes this can double the length of a test and for sure adds at least 3-5 seconds per test method in each test instance.

I suggest we launch 1 browser instance per test and make the base_url accessible. This way, a user can define their own setup/teardown behavior without us making assumptions and still guarantee the browser is being used efficiently.

Activity

  1. mhemesath commented on Dec 28, 2010

    @mhemesath
    ContributorAuthor

    I actually already created a base_url method as WebDriver doesn't provide helper for generating relative URLs. This may become unnecessary as more of Selenium gets integrated into Webdriver in future Selenium 2.0 beta updates.

  2. kylejginavan commented on Dec 28, 2010

    @kylejginavan
    Owner

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions