def step_impl(context, url):
    # Wait for modal to appear
    WebDriverWait(context.browser, 10).until(
        expected_conditions.visibility_of_element_located(
            (By.ID, 'ShareRequestForm')))
    output = context.browser.execute_script("return restman.ui.editors.get('#ShareRequestEditor').getValue();")

    snippet = json.loads(output)

    assert url == snippet["url"], "URL: \"{}\" not in output.\nOutput: {}".format(value, output)
    for row in context.table:
        assert row['key'] in snippet['headers'], "Header {} is not in output".format(row['key'])
        assert row['value'] == snippet['headers'][row['key']], "Header value is not correct. Expected: {}; Actual: {}".format(value, snippet['headers'][name])