def step_impl(context):
    context.driver = webdriver.Chrome('chromedriver')
    page = AddAlgorithmPage(context.driver)
    context.driver.get(page.url)
def step_impl(context):
    expected_url = AddAlgorithmPage(context.driver).url
    assert context.driver.current_url == expected_url
def step_impl(context, content, field_name):
    page = AddAlgorithmPage(context.driver)
    page.form_field(field_name).send_keys(content)
def step_impl(context):
    page = AddAlgorithmPage(context.driver)
    page.add_button.click()
Esempio n. 5
0
def step_impl(context, content):
    page = AddAlgorithmPage(context.driver)
    algorithm = [algo for algo in page.algorithms if algo.text == content]
    assert len(algorithm) > 0
    assert all([algo.is_displayed() for algo in algorithm])
Esempio n. 6
0
def step_impl(context):
    page = AddAlgorithmPage(context.driver)
    algorithms = [algo for algo in page.algorithms]
    assert len(algorithms) > 0
Esempio n. 7
0
def step_impl(context):
    page = AddAlgorithmPage(context.driver)
    assert page.data_table.is_displayed()