本文整理匯總了Python中GeoshieldCommonFiles.AppCommanUtility.click_live_tab方法的典型用法代碼示例。如果您正苦於以下問題:Python AppCommanUtility.click_live_tab方法的具體用法?Python AppCommanUtility.click_live_tab怎麽用?Python AppCommanUtility.click_live_tab使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GeoshieldCommonFiles.AppCommanUtility
的用法示例。
在下文中一共展示了AppCommanUtility.click_live_tab方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: validate_agency_feed_lpr_live_tab
# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_live_tab [as 別名]
def validate_agency_feed_lpr_live_tab(driver, agency_feed_lpr_textbox, agency_feed_lpr_item, index, ws_index):
try:
lpr_live_layer = driver.find_element_by_id("lprLive_layer")
if lpr_live_layer.is_displayed():
AppCommanUtility.click_minimize_btn(driver, "LPR", index, ws_index)
AppCommanUtility.click_down_panel(driver, agency_feed_lpr_item, index, ws_index)
AppCommanUtility.click_select_layer_label_container(driver, agency_feed_lpr_item, index, ws_index)
AppCommanValidation.validate_layer_name(driver, "LPN SUSPECT", agency_feed_lpr_item, index, ws_index, boolean_value=True)
AppCommanUtility.click_live_tab(driver, agency_feed_lpr_item, index, ws_index)
AppCommanValidation.validate_right_panel_layer_name(driver, "LPN SUSPECT", agency_feed_lpr_item, index, ws_index)
AppCommanValidation.validate_feature_count(driver, "lpnlive", agency_feed_lpr_item, index, ws_index)
AppCommanUtility.click_maximize_btn(driver, "LPR", index, ws_index)
else:
AppCommanUtility.click_popup_close_icon(driver, "LPR")
except Exception:
AppCommanUtility.click_popup_close_icon(driver, "LPR")
示例2: validate_avl_live_tab
# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_live_tab [as 別名]
def validate_avl_live_tab(driver, agency_feed_avl, avl_live_layer_name, index, ws_index):
try:
avl_live_layer = driver.find_element_by_id("avlLive_layer")
if avl_live_layer.is_displayed():
AppCommanUtility.click_minimize_btn(driver, agency_feed_avl, index, ws_index)
AppCommanUtility.click_down_panel(driver, agency_feed_avl, index, ws_index)
AppCommanUtility.click_select_layer_label_container(driver, agency_feed_avl, index, ws_index)
AppCommanValidation.validate_layer_name(driver, avl_live_layer_name, agency_feed_avl, index, ws_index, boolean_value=True)
AppCommanUtility.click_live_tab(driver, agency_feed_avl, index, ws_index)
AppCommanValidation.validate_right_panel_layer_name(driver, avl_live_layer_name, agency_feed_avl, index, ws_index)
AppCommanValidation.validate_feature_count(driver, "avlLive", agency_feed_avl, index, ws_index)
AppCommanUtility.click_maximize_btn(driver, agency_feed_avl, index, ws_index)
TestResults.open_py_excel_pass(index, ws_index)
else:
AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)
except Exception:
AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)