本文整理汇总了Python中GeoshieldCommonFiles.AppCommanUtility.widget_close_icon方法的典型用法代码示例。如果您正苦于以下问题:Python AppCommanUtility.widget_close_icon方法的具体用法?Python AppCommanUtility.widget_close_icon怎么用?Python AppCommanUtility.widget_close_icon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GeoshieldCommonFiles.AppCommanUtility
的用法示例。
在下文中一共展示了AppCommanUtility.widget_close_icon方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: validate_social_media_youtube
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
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)
示例2: click_bomb_blast_item_selection
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def click_bomb_blast_item_selection(driver, tools_utilities_bomb_blast_item, tool_bomb_blast_bomb_type, tool_bomb_blast_widget_name, index, ws_index):
""" Method to perform click action on bomb blast item """
AppCommanUtility.click_widget_items(driver, tools_utilities_bomb_blast_item, index, ws_index)
time.sleep(0.5)
select_bomb_item(driver, tool_bomb_blast_bomb_type, tools_utilities_bomb_blast_item, index, ws_index, class_name="bombThreatIconElement")
AppCommanUtility.click_on_map(driver, tools_utilities_bomb_blast_item, index, ws_index)
AppCommanUtility.widget_close_icon(driver, tool_bomb_blast_widget_name, index, ws_index)
示例3: tool_selection_proximity_validation
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def tool_selection_proximity_validation(driver, tools_utilities_selection_item, index, ws_index):
""" Method to validate proximity tab """
AppCommanUtility.widget_close_icon(driver, tools_utilities_selection_item, index, ws_index)
AppCommanUtility.click_select_layer_label_container(driver, tools_utilities_selection_item, index, ws_index)
AppCommanValidation.validate_right_panel_layer_name(driver, tools_utilities_selection_item, tools_utilities_selection_item, index, ws_index)
AppCommanUtility.click_bottom_panel_layer(driver, "Proximity Results", tools_utilities_selection_item, index, ws_index)
AppCommanValidation.validate_feature_count_panel(driver, tools_utilities_selection_item, index, ws_index)
AppCommanValidation.validate_feature_count(driver, "proximityResultLayer", tools_utilities_selection_item, index, ws_index)
TestResults.open_py_excel_pass(index, ws_index)
示例4: fill_data_navigation_find_coordinates
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def fill_data_navigation_find_coordinates(driver, ddl_tool_find_coordinates, ddl_select_coordinate_system_item, find_coordinates_textbox_longitude_text, find_coordinates_textbox_latitude_text, find_coordinates_textbox_long_min_text, find_coordinates_textbox_lat_min_text, find_coordinates_textbox_long_sec, find_coordinates_textbox_lat_sec, find_coordinate_textbox_UTM_zone_text, find_coordinate_textbox_easting_text, find_coordinate_textbox_northing_text, find_coordinate_textbox_zone_text, find_coordinate_textbox_zdl_text, find_coordinate_textbox_letter_text, find_coordinate_textbox_EN_text, tools_navigation_find_coordinates_item, index, ws_index):
""" Method to fill the data in find coordinates tool """
fill_data_find_coordinate_tool(driver, ddl_tool_find_coordinates, tools_navigation_find_coordinates_item, index, ws_index)
select_ddl_item_find_coordinate(driver, ddl_select_coordinate_system_item, tools_navigation_find_coordinates_item, index, ws_index)
if ddl_select_coordinate_system_item == "DD":
AppCommanUtility.fill_data_tools_fields(driver, "Eg. -100", find_coordinates_textbox_longitude_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 35", find_coordinates_textbox_latitude_text)
click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)
elif ddl_select_coordinate_system_item == "Deg. Min.":
AppCommanUtility.fill_data_tools_fields(driver, "Eg. -106", find_coordinates_textbox_longitude_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 39", find_coordinates_textbox_latitude_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 24", find_coordinates_textbox_long_min_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 12", find_coordinates_textbox_lat_min_text)
click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)
elif ddl_select_coordinate_system_item == "DMS":
AppCommanUtility.fill_data_tools_fields(driver, "Eg. -108", find_coordinates_textbox_longitude_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 41", find_coordinates_textbox_latitude_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 7", find_coordinates_textbox_long_min_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 17", find_coordinates_textbox_lat_min_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 3", find_coordinates_textbox_long_sec)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 32", find_coordinates_textbox_lat_sec)
click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)
elif ddl_select_coordinate_system_item == "UTM":
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 12", find_coordinate_textbox_UTM_zone_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 386003", find_coordinate_textbox_easting_text)
AppCommanUtility.fill_data_tools_fields(driver, "Eg. 3552725", find_coordinate_textbox_northing_text)
click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)
elif ddl_select_coordinate_system_item == "MGRS":
find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "Zone", find_coordinate_textbox_zone_text, tools_navigation_find_coordinates_item, index, ws_index)
find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "ZDL", find_coordinate_textbox_zdl_text, tools_navigation_find_coordinates_item, index, ws_index)
find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "2-Letters", find_coordinate_textbox_letter_text, tools_navigation_find_coordinates_item, index, ws_index)
find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "E-N", find_coordinate_textbox_EN_text, tools_navigation_find_coordinates_item, index, ws_index)
click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)
elif ddl_select_coordinate_system_item == "USNG":
find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "Zone", find_coordinate_textbox_zone_text, tools_navigation_find_coordinates_item, index, ws_index)
find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "ZDL", find_coordinate_textbox_zdl_text, tools_navigation_find_coordinates_item, index, ws_index)
find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "2-Letters", find_coordinate_textbox_letter_text, tools_navigation_find_coordinates_item, index, ws_index)
find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "E-N", find_coordinate_textbox_EN_text, tools_navigation_find_coordinates_item, index, ws_index)
click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)
AppCommanUtility.widget_close_icon(driver, tools_navigation_find_coordinates_item, index, ws_index)
示例5: click_advanced_search_item_find_direction
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def click_advanced_search_item_find_direction(driver, tools_navigation_find_direction_item, find_direction_from_address, find_direction_to_address, tools_navigation_find_direction_item_widget_text, travel_mode_find_direction, index, ws_index):
""" Method to fill the data in find direction tool """
AppCommanUtility.click_widget_items(driver, tools_navigation_find_direction_item, index, ws_index)
enter_address_find_direction(driver, "esri_dijit_Geocoder_1_input", find_direction_from_address, tools_navigation_find_direction_item, index, ws_index)
enter_address_find_direction(driver, "esri_dijit_Geocoder_2_input", find_direction_to_address, tools_navigation_find_direction_item, index, ws_index)
# select_find_direction_travel_mode(driver, travel_mode_find_direction, tools_navigation_find_direction_item, index, ws_index)
time.sleep(0.5)
click_btn_find_direction(driver, "Get Directions")
time.sleep(1)
AppCommanUtility.click_popup_close_icon(driver, tools_navigation_find_direction_item_widget_text)
AppCommanUtility.widget_close_icon(driver, tools_navigation_find_direction_item_widget_text, index, ws_index)
ToolValidation.validate_route_find_direction_tool(driver)
TestResults.open_py_excel_pass(index, ws_index)
示例6: click_historic_select_by_area
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def click_historic_select_by_area(driver, agency_feed_lpr_distance_textbox, agency_feed_lpr, index, ws_index):
avl_deactive_radio_button = driver.find_element_by_class_name("lprDeactiveRadioButton")
avl_deactive_radio_button.click()
select_geometry_tab(driver)
AppCommanUtility.click_on_map(driver, agency_feed_lpr, index, ws_index)
agency_feed_lpr_fill_data(driver, "Distance", agency_feed_lpr_distance_textbox, index, ws_index)
# agency_feed_date_fill_date(driver, "Select by Area")
click_okbtn_lpr_select_by_area(driver)
AppCommanUtility.click_popup_close_icon(driver, "LPR")
AppCommanUtility.widget_close_icon(driver, "LPR", index, ws_index)
validate_select_by_area_buffer(driver)
TestResults.open_py_excel_pass(index, ws_index)
示例7: click_historic_select_by_area_tab
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def click_historic_select_by_area_tab(driver, agency_feed_avl_distance_textbox, agency_feed_avl, index, ws_index):
#"avlDeactiveRadioButton"
avl_deactive_radio_button = driver.find_element_by_class_name("avlDeactiveRadioButton")
avl_deactive_radio_button.click()
select_geometry_tab(driver)
AppCommanUtility.click_on_map(driver, agency_feed_avl, index, ws_index)
agency_feed_avl_fill_data(driver, "Distance", agency_feed_avl_distance_textbox, index, ws_index)
# agency_feed_date_fill_date(driver, "Select by Area")
click_okbtn_select_by_area(driver)
AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)
AppCommanUtility.widget_close_icon(driver, agency_feed_avl, index, ws_index)
validate_select_by_area_buffer(driver)
示例8: app_validation
# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import widget_close_icon [as 别名]
def app_validation(driver, search_attribute_tool_name, search_attribute_select_layer_textbox_text, search_attribute_sub_layer_name, index, ws_index):
""" Method to perform close action on popup """
count = 0
try:
dijit_dialog_title_Bar = driver.find_elements_by_class_name("dijitDialogTitleBar")
for item in dijit_dialog_title_Bar:
dijit_dialog_title = item.find_element_by_class_name("dijitDialogTitle")
dijit_dialog_close_icon = item.find_element_by_class_name("dijitDialogCloseIcon")
if dijit_dialog_close_icon.is_displayed():
if dijit_dialog_title.text == search_attribute_tool_name:
count = count + 1
dijit_dialog_close_icon.click()
time.sleep(2)
AppCommanUtility.widget_close_icon(driver, search_attribute_tool_name, index, ws_index)
break
if count == 0:
AppCommanUtility.widget_close_icon(driver, search_attribute_tool_name, index, ws_index)
tool_search_attribute_validation(driver, search_attribute_select_layer_textbox_text, search_attribute_sub_layer_name, search_attribute_tool_name, index, ws_index)
except Exception:
TestFailScreenShots.get_screenshots(driver, search_attribute_tool_name, "app_validation")
TestLog.log_creation(search_attribute_tool_name, "app_validation", index, ws_index)
TestResults.open_py_excel_pass(index, ws_index)