Corrected XPath for server power status
Change-Id: I877d3bb968658d59c0c425924a9f1630d7e785ae
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/obmc_gui/data/resource_variables.py b/gui/obmc_gui/data/resource_variables.py
index 1edb275..875ef7b 100644
--- a/gui/obmc_gui/data/resource_variables.py
+++ b/gui/obmc_gui/data/resource_variables.py
@@ -16,6 +16,7 @@
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_display_server_power_status = \
"//*[@id='header__wrapper']/div/div[3]/a[3]/span"
xpath_select_button_power_on = "//*[@id='power__power-on']"
diff --git a/gui/obmc_gui/lib/resource.robot b/gui/obmc_gui/lib/resource.robot
index c12f785..9f132bb 100644
--- a/gui/obmc_gui/lib/resource.robot
+++ b/gui/obmc_gui/lib/resource.robot
@@ -120,7 +120,9 @@
Rprint Timen ${TEST NAME} ==> [STARTED]
Launch Browser And Login OpenBMC GUI
Log To Console Verifying the system state and stablity...
- ${obmc_current_state}= Get Text ${xpath_display_server_power_status}
+
+ Click Button ${xpath_select_server_power}
+ ${obmc_current_state}= Get Text ${xpath_power_indicator}
Rpvars obmc_current_state
${obmc_state_status}= Run Keyword And Return Status