def test(data):
    actions.navigate(data.env.url + 'dynamic-elements/?delay=3')
    actions.wait_for_element_present('#button-five', 10)
    golem_steps.assert_last_step_message(
        'Wait for element #button-five to be present')
    actions.verify_element_present('#button-five')
    actions.navigate(data.env.url + 'dynamic-elements/?delay=5')
    msg = "timeout waiting for element #button-five to be present"
    with expected_exception(TimeoutException, msg):
        actions.wait_for_element_present('#button-five', 3)
def test(data):
    actions.navigate(data.env.url + 'dynamic-elements/?delay=3')
    actions.wait_for_element_present('#button-five', 10)
    actions.verify_element_present('#button-five')
    actions.navigate(data.env.url + 'dynamic-elements/?delay=5')
    try:
        actions.wait_for_element_present('#button-five', 3)
    except Exception as e:
        assert "Element #button-five not found using selector css:'#button-five'" in e.args[
            0]
Esempio n. 3
0
def save_test():
    actions.click(save_button)
    actions.wait_for_element_present('#toast-container', timeout=5)