blob: 0887e6750d7b4a5fcc576f0158a4c285e57393f4 [file] [log] [blame]
Sathyajith M Se6956c02017-08-16 01:50:17 -05001#!/usr/bin/python
2
3r"""
4Contains xpaths and related string constants applicable to all openBMC GUI
5menus.
6"""
7
Sivas SRR40c1f042018-01-05 11:00:02 -06008
Sathyajith M Se6956c02017-08-16 01:50:17 -05009class resource_variables():
10
11 xpath_textbox_username = "//*[@id='username']"
12 xpath_textbox_password = "//*[@id='password']"
13 xpath_button_login = "//*[@id='login__submit']"
14 xpath_button_logout = "//*[@id='header']/a"
Sivas SRR40c1f042018-01-05 11:00:02 -060015 xpath_openbmc_url = "http://localhost:8080/#/login"
16 xpath_openbmc_ip = "//*[@id='login__form']/input[1]"
17 openbmc_username = "root"
18 openbmc_password = "0penBmc"
19
20 # Power operation elements needed for power on.
21 header_wrapper = "3"
22 header_wrapper_elt = "3"
23
24 # Power operation elements needed for power operations confirmation.
25 power_operations = "3"
26 warm_boot = "3"
27 cold_boot = "4"
28 shut_down = "5"
29 power_off = "6"
30 confirm_msg = "2"
31 yes = "1"