コード例 #1
0
def browser(request):
    """Starts and stops the server for each app in APPS"""

    _browser = config.get_browser()
    _browser.implicitly_wait(3)
    request.addfinalizer(lambda: _browser.quit())
    return _browser
コード例 #2
0
def browser(request):
    """Starts and stops the server for each app in APPS"""

    _browser = config.get_browser()
    _browser.implicitly_wait(3)
    request.addfinalizer(lambda: _browser.quit())
    return _browser
コード例 #3
0
def browser(request):
    """Starts and stops the server for each app in APPS"""
    _browser = config.get_browser()
    _browser.set_window_size(800, 600)
    _browser.set_window_position(1024 - 800 - 10, 40)
    # _browser.implicitly_wait(4)
    request.addfinalizer(lambda: _browser.quit())
    return _browser
コード例 #4
0
def browser(request):
    """Starts and stops the server for each app in APPS"""
    _browser = config.get_browser()
    _browser.set_window_size(800, 600)
    _browser.set_window_position(1024 - 800 - 10, 40)
    # _browser.implicitly_wait(4)
    request.addfinalizer(lambda: _browser.quit())
    return _browser