Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [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 | |
| 8 | |
| 9 | class 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" |