blob: 086bec18a52518f5a0af30a92ae4016c8c8589c3 [file] [log] [blame]
#!/usr/bin/python
r"""
Contains xpaths and related string constants applicable to all openBMC GUI
menus.
"""
class resource_variables():
xpath_textbox_hostname = "//*[@id='login__form']/input[1]"
xpath_textbox_username = "//*[@id='username']"
xpath_textbox_password = "//*[@id='password']"
xpath_button_login = "//*[@id='login__submit']"
xpath_button_logout = "//*[@id='header']/a"
xpath_display_server_power_status = \
"//*[@id='header__wrapper']/div/div[3]/a[3]/span"
xpath_select_button_orderly_power_shutdown = \
"//*[@id='power__soft-shutdown']"
xpath_select_button_orderly_power_shutdown_yes = \
"//*[@id='power-operations']/div[3]/div[5]/confirm/div/div[2]/" \
"button[1]"
xpath_select_button_power_on = "//*[@id='power__power-on']"
obmc_off_state = "Off"
obmc_quiesced_state = "Quiesced"
obmc_running_state = "Running"