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


Python GeoshieldCommonFiles.AppCommanUtility类代码示例

本文整理汇总了Python中GeoshieldCommonFiles.AppCommanUtility的典型用法代码示例。如果您正苦于以下问题:Python AppCommanUtility类的具体用法?Python AppCommanUtility怎么用?Python AppCommanUtility使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AppCommanUtility类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_search_coordinate_tool

    def test_search_coordinate_tool(self, index, result, tools_utilities_selection_item, main_layer_name, sub_layer_name, tool_selection_textbox_distance_text):

        """ Test Method """
        self.driver.get("http://geoshieldles.usgovcloudapp.net:8080/geoshieldmissionmodule/")

        # click left panel
        AppCommanUtility.click_left_panel_open(self.driver, tools_utilities_selection_item, int(index), ws_index=6, method_name="click_left_panel_open")

        # select browse tab
        SeleniumActionTestToolSelection.select_browse_tab_layer(self.driver, main_layer_name, sub_layer_name, tools_utilities_selection_item, int(index), ws_index=6)

        # click widget icon
        SeleniumActionTestToolSelection.click_widget_icon(self.driver, tools_utilities_selection_item, int(index), ws_index=6)

        # click utilities item selection
        SeleniumActionTestToolSelection.click_utilities_item_selection(self.driver, tools_utilities_selection_item, sub_layer_name, int(tool_selection_textbox_distance_text), int(index), ws_index=6)

        # tool selection buffer tab validation
        SeleniumActionTestToolSelection.tool_selection_buffer_validation(self.driver, tools_utilities_selection_item, int(index), ws_index=6)

        # click utilities item proximity
        SeleniumActionTestToolSelection.click_utilities_item_selection_proximity(self.driver, tools_utilities_selection_item, sub_layer_name, int(tool_selection_textbox_distance_text), int(index), ws_index=6)

        # tool selection proximity tab validation
        SeleniumActionTestToolSelection.tool_selection_proximity_validation(self.driver, tools_utilities_selection_item, int(index), ws_index=6)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:25,代码来源:TestToolSelection.py

示例2: validate_social_media_youtube

def validate_social_media_youtube(driver, social_media_youtube, youtube_layer_name, index, ws_index):

    """ Method to validate the twitter social media item """
    try:
        row_tweet_container = driver.find_elements_by_class_name("rowYoutubeContainer")
        row_tweet_container[0].click()
    except Exception:
        AppCommanUtility.widget_close_icon(driver, social_media_youtube, index, ws_index)
        TestResults.open_py_excel_pass(index, ws_index)
        return True

    AppCommanUtility.click_minimize_btn(driver, social_media_youtube, index, ws_index)

    YouTubeValidation.validate_youtube_highlighted_buffer(driver)

    AppCommanUtility.widget_close_icon(driver, social_media_youtube, index, ws_index)

    YouTubeValidation.validate_youtube_buffer(driver)

    AppCommanUtility.click_down_panel(driver, social_media_youtube, index, ws_index)

    AppCommanUtility.click_select_layer_label_container(driver, social_media_youtube, index, ws_index)

    AppCommanValidation.validate_layer_name(driver, youtube_layer_name, social_media_youtube, index, ws_index, boolean_value=True)

    AppCommanValidation.validate_right_panel_layer_name(driver, youtube_layer_name, social_media_youtube, index, ws_index)

    AppCommanValidation.validate_feature_count_panel(driver, social_media_youtube, index, ws_index)

    AppCommanValidation.validate_feature_count(driver, "youtubeResultFeatureLayer", social_media_youtube, index, ws_index)

    TestResults.open_py_excel_pass(index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:32,代码来源:SeleniumActionsSocialMediaYouTube.py

示例3: test_serach_attribute_tool

    def test_serach_attribute_tool(self, index, result, tools_advanced_search_search_attribute_item, search_attribute_textbox_search_layer_text, search_attribute_textbox_Field_text, search_attribute_textbox_Operaror_text, search_attribute_textbox_Value_text, query_name, search_attribute_tool_name, search_attribute_sub_layer_name):

        """ Test Method """

        self.driver.get("http://geoshieldles.usgovcloudapp.net:8080/geoshieldmissionmodule/")

        # click left panel
        AppCommanUtility.click_left_panel_open(self.driver, tools_advanced_search_search_attribute_item, int(index), ws_index=2, method_name="click_left_panel_open")

        # click widget icon
        SeleniumActionsToolSearchAttribute.click_widget_icon(self.driver, tools_advanced_search_search_attribute_item, int(index), ws_index=2)

        # click advanced search item search attribute
        SeleniumActionsToolSearchAttribute.click_advanced_search_item_search_attribute(self.driver, tools_advanced_search_search_attribute_item, int(index), ws_index=2)

        # fill data search attribute new query
        SeleniumActionsToolSearchAttribute.fill_data_search_attribute_new_query(self.driver, search_attribute_textbox_search_layer_text, search_attribute_textbox_Field_text, search_attribute_textbox_Operaror_text, search_attribute_textbox_Value_text, query_name, search_attribute_tool_name, search_attribute_sub_layer_name, tools_advanced_search_search_attribute_item, index, ws_index=2)

        # click right sub panel prior query
        SeleniumActionsToolSearchAttribute.click_right_sub_panel_prior_query(self.driver, tools_advanced_search_search_attribute_item, index, ws_index=2)

        # fill data search attribute prior query
        SeleniumActionsToolSearchAttribute.fill_data_search_attribute_prior_query(self.driver, query_name, search_attribute_tool_name, index, ws_index=2)

        # search attribute tool validation
        SeleniumActionsToolSearchAttribute.app_validation(self.driver, search_attribute_tool_name, search_attribute_textbox_search_layer_text, search_attribute_sub_layer_name, index, ws_index=2)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:26,代码来源:TestSearchAttribute.py

示例4: click_browse_container

def click_browse_container(driver, browse_tab_container_name, category_main_layer_name, category_sub_layer_name, tool_name, index, ws_index):

    """ Method to click on container of browse widget"""

    AppCommanUtility.click_browse_tab_item(driver, browse_tab_container_name, tool_name, index, ws_index)

    select_layer_browse_widget(driver, category_main_layer_name, category_sub_layer_name, tool_name, index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:7,代码来源:SeleniumActionsBrowseWidget.py

示例5: click_agency_feed_avl

def click_agency_feed_avl(driver, agency_feed_avl, index, ws_index):

    AppCommanUtility.click_widget_items(driver, agency_feed_avl, index, ws_index)

    click_avl_live_select_all_checkbox(driver, agency_feed_avl, index, ws_index)

    click_okbtn_avl_live_tab(driver, agency_feed_avl, index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:7,代码来源:SeleniumActionsAgencyFeedAVL.py

示例6: click_down_panel_div

def click_down_panel_div(driver, tool_name, index, ws_index):

    """ Method to click on down panel"""

    AppCommanUtility.click_down_panel(driver, tool_name, index, ws_index)
    click_select_layer_container(driver, tool_name, index, ws_index)
    click_right_panel_open(driver, tool_name, index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:7,代码来源:SeleniumActionsBrowseWidget.py

示例7: fill_data_search_attribute_new_query

def fill_data_search_attribute_new_query(driver, search_attribute_select_layer_textbox_text, search_attribute_textbox_Field_text, search_attribute_textbox_Operaror_text, search_attribute_textbox_Value_text, query_name, search_attribute_tool_name, search_attribute_sub_layer_name, tools_advanced_search_search_attribute_item, index, ws_index):

    """ Method to perform fill data in new query tool """

    fill_data_advanced_search_attribure_query(driver, "Select Layer", search_attribute_select_layer_textbox_text)

    fill_data_advanced_serach_attribute_query_ddl(driver, "Select Field", tools_advanced_search_search_attribute_item, index, ws_index)
    AppCommanUtility.select_ddl_item(driver, search_attribute_textbox_Field_text, tools_advanced_search_search_attribute_item, index, ws_index)

    fill_data_advanced_serach_attribute_query_ddl(driver, "Select Operator", tools_advanced_search_search_attribute_item, index, ws_index)
    AppCommanUtility.select_ddl_item(driver, search_attribute_textbox_Operaror_text, tools_advanced_search_search_attribute_item, index, ws_index)

    AppCommanUtility.fill_data_tools_fields(driver, "Eg: 10", search_attribute_textbox_Value_text)
    select_query_title(driver, query_name, tools_advanced_search_search_attribute_item, index, ws_index)

    attribute_query_savequery_button = driver.find_element_by_class_name("attributeQuerySaveQueryButton")
    attribute_query_savequery_button.click()
    time.sleep(1)

    AppCommanUtility.click_popup_close_icon(driver, search_attribute_tool_name)

    attribute_query_search_button = driver.find_element_by_class_name("attributeQuerySearchButton")
    attribute_query_search_button.click()
    time.sleep(1)

    AppCommanUtility.click_popup_close_icon(driver, search_attribute_tool_name)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:26,代码来源:SeleniumActionsToolSearchAttribute.py

示例8: click_okbtn_historic_select_by_unit_tab

def click_okbtn_historic_select_by_unit_tab(driver, agency_feed_avl, index, ws_index):
    try:
        avl_ok_content = driver.find_elements_by_class_name("avlOkContent")
        avl_ok_content[1].click()
        time.sleep(2)
    except Exception:
        TestFailScreenShots.get_screenshots(driver, agency_feed_avl, "click_okbtn_historic_select_by_unit_tab")
        TestLog.log_creation(agency_feed_avl, "click_okbtn_historic_select_by_unit_tab", index, ws_index)
    try:
        avl_historic_layer = driver.find_element_by_id("avlHistoricLayer_layer")
        if avl_historic_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 Historic Layer", agency_feed_avl, index, ws_index, boolean_value=True)

            AppCommanValidation.validate_right_panel_layer_name(driver, "AVL Historic Layer", agency_feed_avl, index, ws_index)

            AppCommanValidation.validate_agency_feed_avl_historic_tab(driver, "avlHistoricLayer")

            AppCommanUtility.click_maximize_btn(driver, agency_feed_avl, index, ws_index)

    except Exception:
        AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:27,代码来源:SeleniumActionsAgencyFeedAVL.py

示例9: fill_data_search_attribute_prior_query

def fill_data_search_attribute_prior_query(driver, query_name, search_attribute_tool_name, index, ws_index):

    """ Method to perform fill data in prior query """

    AppCommanUtility.fill_data_tools_fields(driver, "Select title", query_name)

    click_priority_ok_btn(driver, "OK", search_attribute_tool_name, index, ws_index)
    time.sleep(1)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:8,代码来源:SeleniumActionsToolSearchAttribute.py

示例10: click_agency_feed_lpr

def click_agency_feed_lpr(driver, agency_feed_lpr, agency_feed_lpr_textbox, index, ws_index):
    AppCommanUtility.click_widget_items(driver, agency_feed_lpr, index, ws_index)

    agency_feed_lpr_fill_data(driver, "License Plate Number", agency_feed_lpr_textbox, index, ws_index)

    click_lpr_live_okbtn(driver, agency_feed_lpr_textbox, index, ws_index)

    validate_agency_feed_lpr_live_tab(driver, agency_feed_lpr_textbox, agency_feed_lpr, index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:8,代码来源:SeleniumActionsAgencyFeedLPR.py

示例11: click_navigation_item_google_street_view

def click_navigation_item_google_street_view(driver):

    """ Method to click on google street view"""

    AppCommanUtility.click_widget_items(driver, "Google Street View")
    AppCommanUtility.click_on_map(driver)

    driver.switch_to_window(driver.window_handles[1])
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:8,代码来源:SeleniumActionsGoogleStreetView.py

示例12: click_right_tab_historic

def click_right_tab_historic(driver, agency_feed_item_avl_unitid_text, agency_feed_avl, index, ws_index):

    AppCommanUtility.select_sub_tool(driver, "Historic", index, ws_index, class_name="removeRightBorder")

    agency_feed_avl_fill_data(driver, "Unit Id", agency_feed_avl, index, ws_index)

    agency_feed_date_fill_date(driver, "Select by Unit")

    fill_data_select_date(driver)

    click_okbtn_historic_select_by_unit_tab(driver, agency_feed_avl, index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:11,代码来源:SeleniumActionsAgencyFeedAVL.py

示例13: click_advanced_search_item_publish_to_AGOL

def click_advanced_search_item_publish_to_AGOL(driver, tools_utilities_publish_to_AGOL_item, tool_AGOL_publish_textbox_username_text, tool_AGOL_publish_textbox_passward_text, tool_AGOL_publish_textbox_webmaptitle_text, index, ws_index):

    """ Method to click on item publish to AGOL"""

    AppCommanUtility.click_widget_items(driver, tools_utilities_publish_to_AGOL_item, index, ws_index)

    fill_data_publish_to_AGOL_tab(driver, "Username", tool_AGOL_publish_textbox_username_text, tools_utilities_publish_to_AGOL_item, index, ws_index)
    fill_data_publish_to_AGOL_tab(driver, "Password", tool_AGOL_publish_textbox_passward_text, tools_utilities_publish_to_AGOL_item, index, ws_index)
    fill_data_publish_to_AGOL_tab(driver, "Webmap Title", tool_AGOL_publish_textbox_webmaptitle_text, tools_utilities_publish_to_AGOL_item, index, ws_index)

    click_okbtn_publish_to_AGOL_tab(driver, tools_utilities_publish_to_AGOL_item, index, ws_index, class_name="publishMapButton")
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:11,代码来源:SeleniumActionsPublishAGOLPortal.py

示例14: tool_bomb_blast_validation

def tool_bomb_blast_validation(driver,index, tool_bomb_blast_widget_name, tools_utilities_bomb_blast_item, ws_index):

    """ Method to perform validation of tool bomb blast """

    AppCommanUtility.click_down_panel(driver, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanUtility.click_select_layer_label_container(driver, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanUtility.click_right_panel_open(driver, tools_utilities_bomb_blast_item, index, boolean_value=False, ws_index=7)
    AppCommanUtility.click_graphics_tab(driver, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanValidation.validate_right_panel_layer_name(driver, tool_bomb_blast_widget_name, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanUtility.click_bottom_panel_layer(driver, tool_bomb_blast_widget_name, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanValidation.validate_feature_count_panel(driver, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanValidation.validate_feature_count(driver, tool_bomb_blast_widget_name, tools_utilities_bomb_blast_item, index, ws_index)
    TestLogBombBlast.open_py_excel_pass(index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:13,代码来源:SeleniumActionsToolBombBlast.py

示例15: find_coordinates_tool_validation

def find_coordinates_tool_validation(driver, tools_navigation_find_coordinates_item, index, ws_index):

    """ Method to validate the tool find coordinates """

    AppCommanUtility.click_down_panel(driver, tools_navigation_find_coordinates_item, index, ws_index)
    AppCommanUtility.click_select_layer_label_container(driver, tools_navigation_find_coordinates_item, index, ws_index)
    AppCommanUtility.click_right_panel_open(driver, False, tools_navigation_find_coordinates_item, index, ws_index)
    AppCommanUtility.click_graphics_tab(driver, tools_navigation_find_coordinates_item, index, ws_index)
    AppCommanValidation.validate_right_panel_layer_name(driver, tools_navigation_find_coordinates_item, tools_navigation_find_coordinates_item, index, ws_index)

    AppCommanUtility.click_bottom_panel_layer(driver, tools_navigation_find_coordinates_item, tools_navigation_find_coordinates_item, index, ws_index)
    AppCommanValidation.validate_feature_count_panel(driver, tools_navigation_find_coordinates_item, index, ws_index)
    AppCommanValidation.validate_feature_circle_count(driver, "findCoordinates", tools_navigation_find_coordinates_item, index, ws_index)

    TestResults.open_py_excel_pass(index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:15,代码来源:SeleniumActionsToolFindCoordinate.py


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