Removed unused xpath from resource_variables.py file
Change-Id: Ia4d339ae9193cb7e8b94de3c1a4285eaa111787b
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/data/resource_variables.py b/gui/data/resource_variables.py
index 5eee995..e03eede 100644
--- a/gui/data/resource_variables.py
+++ b/gui/data/resource_variables.py
@@ -14,8 +14,6 @@
xpath_button_login = "//*[@id='login__submit']"
xpath_button_logout = '//a[contains(text(), "Log out")]'
xpath_yes_button = "//button[text()='Yes']"
- xpath_openbmc_url = "http://localhost:8080/#/login"
- xpath_openbmc_ip = "//*[@id='login__form']/input[1]"
xpath_power_indicator = "//*[@id='power-indicator-bar']"
xpath_select_button_power_on = "//*[@id='power__power-on']"
xpath_cancel_button = "//button[contains(text(),'Cancel')]"
@@ -25,9 +23,6 @@
"//*[@id='power__warm-boot']"
xpath_operation_warning_message = \
"//*[@class='inline__confirm active']"
- xpath_select_button_warm_reboot_no = \
- "//*[@id='power-operations']/div[3]" \
- "/div[3]/confirm/div/div[2]/button[2]"
text_warm_reboot_warning_message = "warm reboot?"
xpath_select_button_warm_reboot_yes = \
"//*[@id='power-operations']" \
@@ -35,9 +30,6 @@
xpath_select_button_cold_reboot = \
"//*[@id='power__cold-boot']"
- xpath_select_button_cold_reboot_no = \
- "//*[@id='power-operations']/div[3]/div[4]" \
- "/confirm/div/div[2]/button[2]"
text_cold_reboot_warning_message = "cold reboot?"
xpath_select_button_cold_reboot_yes = \
"//*[@id='power-operations']" \
@@ -55,9 +47,6 @@
xpath_select_button_immediate_shutdown = \
"//*[@id='power__hard-shutdown']"
- xpath_select_button_immediate_shutdown_no = \
- "//*[@id='power-operations']/div[3]/div[6]" \
- "/confirm/div/div[2]/button[2]"
text_immediate_shutdown_warning_message = "immediate shutdown?"
xpath_select_button_immediate_shutdown_yes = \
"//*[@id='power-operations']/div[3]/div[6]" \
@@ -82,26 +71,10 @@
xpath_select_server_health = "//a[@href='#/server-health/event-log']"
xpath_select_server_led = "//a[@href='#/server-control/server-led']"
- # Power operation elements needed for power on.
- header_wrapper = "3"
- header_wrapper_elt = "3"
-
- # Power operation elements needed for power operations confirmation.
- power_operations = "3"
- warm_boot = "3"
- cold_boot = "4"
- shut_down = "5"
- power_off = "6"
- confirm_msg = "2"
- yes = "1"
- No = "2"
-
# GUI header elements locators.
xpath_select_server_power = "//a[@href='#/server-control/power-operations']"
# Server health elements locators.
- xpath_server_health_text = \
- "//*[@id='header__wrapper']/div/div[3]/a[2]/span"
xpath_select_refresh_button = \
"//*[contains(text(),'Refresh')]"
xpath_event_severity_all = "//*[text()='Filter by severity']/following-sibling::button[1]"
@@ -127,10 +100,6 @@
xpath_mark_as_resolved = \
"//*[@id='event__actions-bar']/div[2]/div[2]/button[2]"
xpath_events_export = "//*[@id='event__actions-bar']/div[2]/div[2]/a"
- xpath_event_delete_no = \
- "//*[@id='event__actions-bar']/div[2]/div[1]/div[2]/button[2]"
- xpath_event_delete_yes = \
- "//*[@id='event__actions-bar']/div[2]/div[1]/div[2]/button[1]"
xpath_individual_event_select = "(//*[@class='control__indicator'])[2]"
xpath_individual_event_delete = \
"//*[@id='event__actions-bar']/div[2]/div[2]/button[1]"