view _ui_tests/ @ 1862:afa63a0cc1e1

partial revert of dab0253193eb
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 18 Nov 2012 16:58:06 +0100
parents f87d2e646c60
children 384555088cab
line wrap: on
line source
# Copyright: 2012 MoinMoin:HughPerkins
# License: GNU GPL v3 (or any later version), see LICENSE.txt for details.

This module is used to register the webdriver driver module as a global
variable, so that it can be used by conftest methods, eg for doing a
printscreen when a test fails

driver = None

def register_driver(driver_):
    set the driver global variable to driver_
    global driver
    driver = driver_

def get_driver():
    get the value of the driver global variable
    global driver
    return driver