Align with new webui development code
Resolves openbmc/openbmc-test-automation#1179
Change-Id: Icf0ce2326dc1fba0bda78f1106d3a1e5fe034473
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/gui/obmc_asmi/data/resource_variables.py b/gui/obmc_asmi/data/resource_variables.py
index 21f5b3f..0887e67 100644
--- a/gui/obmc_asmi/data/resource_variables.py
+++ b/gui/obmc_asmi/data/resource_variables.py
@@ -5,9 +5,27 @@
menus.
"""
+
class resource_variables():
xpath_textbox_username = "//*[@id='username']"
xpath_textbox_password = "//*[@id='password']"
xpath_button_login = "//*[@id='login__submit']"
xpath_button_logout = "//*[@id='header']/a"
+ xpath_openbmc_url = "http://localhost:8080/#/login"
+ xpath_openbmc_ip = "//*[@id='login__form']/input[1]"
+ openbmc_username = "root"
+ openbmc_password = "0penBmc"
+
+ # 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"