Skip to content

Commit

Permalink
Fixed browser with splinter_browser_load_condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
markon committed Jun 24, 2014
1 parent 0f860a2 commit 994cdf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytest_splinter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def splinter_session_scoped_browser(request):
@pytest.fixture # pragma: no cover
def browser(
request, browser_pool, splinter_webdriver, splinter_session_scoped_browser,
splinter_close_browser):
splinter_close_browser, splinter_browser_load_condition):
"""Splinter browser wrapper instance. To be used for browser interaction.
Function scoped (cookies are clean for each test and on blank).
"""
Expand All @@ -240,6 +240,7 @@ def browser(
pass
browser = browser_pool[0] = get_browser()

browser.visit_condition = splinter_browser_load_condition
browser.driver.get('about:blank')
return browser

Expand Down

0 comments on commit 994cdf9

Please sign in to comment.