当前位置: 首页>>代码示例>>Python>>正文


Python AppCommanUtility.click_live_tab方法代码示例

本文整理汇总了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")
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:29,代码来源:SeleniumActionsAgencyFeedLPR.py

示例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)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:31,代码来源:SeleniumActionsAgencyFeedAVL.py


注:本文中的GeoshieldCommonFiles.AppCommanUtility.click_live_tab方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。