from splinter import Browser


def before_all(context):
    # Create only once before run all tests
    context.browser = Browser()


def after_scenario(context, scenario):
    # Clean up browser data
    context.browser.cookies.delete()

    # Reopen window
    context.browser.execute_script("window.open()")
    new_window = context.browser.windows[-1]
    new_window.close_others()


def after_all(context):
    # Close when finish all tests
    context.browser.quit()

a77a795f77f652353413f92698edbfe410988edd
<mask token>


def after_all(context):
    context.browser.quit()

<mask token>


def after_scenario(context, scenario):
    context.browser.cookies.delete()
    context.browser.execute_script('window.open()')
    new_window = context.browser.windows[-1]
    new_window.close_others()


def after_all(context):
    context.browser.quit()

<mask token>


def before_all(context):
    context.browser = Browser()


def after_scenario(context, scenario):
    context.browser.cookies.delete()
    context.browser.execute_script('window.open()')
    new_window = context.browser.windows[-1]
    new_window.close_others()


def after_all(context):
    context.browser.quit()

from splinter import Browser


def before_all(context):
    context.browser = Browser()


def after_scenario(context, scenario):
    context.browser.cookies.delete()
    context.browser.execute_script('window.open()')
    new_window = context.browser.windows[-1]
    new_window.close_others()


def after_all(context):
    context.browser.quit()

from splinter import Browser


def before_all(context):
    # Create only once before run all tests
    context.browser = Browser()


def after_scenario(context, scenario):
    # Clean up browser data
    context.browser.cookies.delete()

    # Reopen window
    context.browser.execute_script("window.open()")
    new_window = context.browser.windows[-1]
    new_window.close_others()


def after_all(context):
    # Close when finish all tests
    context.browser.quit()
