Sathyajith M S | e6956c0 | 2017-08-16 01:50:17 -0500 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | r""" |
| 4 | Contains xpaths and related string constants applicable to all openBMC GUI |
| 5 | menus. |
| 6 | """ |
| 7 | |
Sivas SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 8 | |
Sathyajith M S | e6956c0 | 2017-08-16 01:50:17 -0500 | [diff] [blame] | 9 | class 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 SRR | 40c1f04 | 2018-01-05 11:00:02 -0600 | [diff] [blame] | 15 | 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" |