Exemple #1
0
def proxy_request(session_id, url=None):
    request.session = current_app.sessions.get_session(session_id)

    status, headers, body = helpers.transparent()

    take_screenshot(status, body)
    return helpers.form_response(status, headers, body)
Exemple #2
0
def proxy_request(session_id, url=None):
    request.session = current_app.sessions.get_session(session_id)

    with profiler.requests_duration(helpers.get_webdriver_command(
            request.path)):
        status, headers, body = helpers.transparent()

    take_screenshot(status, body)
    return helpers.form_response(status, headers, body)
Exemple #3
0
def get_session(session_id):
    request.session = current_app.sessions.get_session(session_id)
    status, headers, body = helpers.transparent()
    return helpers.form_response(status, headers, body)