blob: 086bec18a52518f5a0af30a92ae4016c8c8589c3 [file] [log] [blame]
Sathyajith M S4f26ae72018-01-16 04:45:05 -06001#!/usr/bin/python
2
3r"""
4Contains xpaths and related string constants applicable to all openBMC GUI
5menus.
6"""
7
8
9class resource_variables():
10
11 xpath_textbox_hostname = "//*[@id='login__form']/input[1]"
12 xpath_textbox_username = "//*[@id='username']"
13 xpath_textbox_password = "//*[@id='password']"
14 xpath_button_login = "//*[@id='login__submit']"
15 xpath_button_logout = "//*[@id='header']/a"
16 xpath_display_server_power_status = \
17 "//*[@id='header__wrapper']/div/div[3]/a[3]/span"
18 xpath_select_button_orderly_power_shutdown = \
19 "//*[@id='power__soft-shutdown']"
20 xpath_select_button_orderly_power_shutdown_yes = \
21 "//*[@id='power-operations']/div[3]/div[5]/confirm/div/div[2]/" \
22 "button[1]"
23 xpath_select_button_power_on = "//*[@id='power__power-on']"
24
25 obmc_off_state = "Off"
26 obmc_quiesced_state = "Quiesced"
27 obmc_running_state = "Running"