示例#1
0
def assert_btn_disabled_in_toolbar_in_data_tab_in_op(selenium, browser_id,
                                                     btn_list, op_page):
    driver = selenium[browser_id]
    toolbar = op_page(driver).data.toolbar
    err_msg = '{} btn should be disabled but is not in toolbar in op data tab'
    for btn in parse_seq(btn_list):
        item = getattr(toolbar, transform(btn))
        assert item.is_enabled() is False, err_msg.format(btn)
示例#2
0
def click_tooltip_from_toolbar_in_data_tab_in_op(selenium, browser_id,
                                                 btn_list, op_page):
    driver = selenium[browser_id]
    toolbar = op_page(driver).data.toolbar
    err_msg = '{} btn should be disabled but is not in toolbar in op data tab'
    for btn in parse_seq(btn_list):
        item = getattr(toolbar, transform(btn))
        assert item.is_enabled() is False, err_msg.format(btn)
示例#3
0
def click_tooltip_from_toolbar_in_data_tab_in_op(selenium, browser_id,
                                                 btn_list, op_page):
    driver = selenium[browser_id]
    toolbar = op_page(driver).data.toolbar
    err_msg = '{} should be disabled but is not'
    for btn in parse_seq(btn_list):
        item = getattr(toolbar, transform(btn))
        assert item.is_enabled() is True, err_msg.format(item)
示例#4
0
def click_tooltip_from_toolbar_in_data_tab_in_op(selenium, browser_id, tooltip,
                                                 op_page):
    driver = selenium[browser_id]
    btn = getattr(op_page(driver).data.toolbar, transform(tooltip))
    btn.click()
示例#5
0
def click_tooltip_from_toolbar_in_data_tab_in_op(selenium, browser_id,
                                                 tooltip, op_page):
    driver = selenium[browser_id]
    btn = getattr(op_page(driver).data.toolbar, transform(tooltip))
    btn.click()