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)
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)
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)
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()