blob: 6fd1de6b5a3da434bcbbe1c735e16e5b0993fac2 [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"
Sivas SRRffa42692018-01-17 05:17:35 -060016 xpath_openbmc_url = "http://localhost:8080/#/login"
17 xpath_openbmc_ip = "//*[@id='login__form']/input[1]"
Sathyajith M S4f26ae72018-01-16 04:45:05 -060018 xpath_display_server_power_status = \
19 "//*[@id='header__wrapper']/div/div[3]/a[3]/span"
20 xpath_select_button_orderly_power_shutdown = \
21 "//*[@id='power__soft-shutdown']"
22 xpath_select_button_orderly_power_shutdown_yes = \
23 "//*[@id='power-operations']/div[3]/div[5]/confirm/div/div[2]/" \
24 "button[1]"
25 xpath_select_button_power_on = "//*[@id='power__power-on']"
26
27 obmc_off_state = "Off"
28 obmc_quiesced_state = "Quiesced"
29 obmc_running_state = "Running"
Sivas SRRffa42692018-01-17 05:17:35 -060030
31 # Power operation elements needed for power on.
32 header_wrapper = "3"
33 header_wrapper_elt = "3"
34
35 # Power operation elements needed for power operations confirmation.
36 power_operations = "3"
37 warm_boot = "3"
38 cold_boot = "4"
39 shut_down = "5"
40 power_off = "6"
41 confirm_msg = "2"
42 yes = "1"
43 No = "2"