prkatti1 | e219896 | 2016-12-23 00:20:37 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Library XvfbRobot |
| 4 | Library OperatingSystem |
| 5 | Library Selenium2Library 120 120 |
| 6 | Library Telnet 30 Seconds |
| 7 | Library Screenshot |
| 8 | |
| 9 | Resource resource.txt |
| 10 | |
| 11 | *** Keywords *** |
| 12 | |
| 13 | Open Browser With URL |
| 14 | [Documentation] Opens browser with specified URL. |
| 15 | [Arguments] ${URL} |
| 16 | Start Virtual Display 1920 1080 |
| 17 | ${browser_ID}= Open Browser ${URL} |
| 18 | Set Window Size 1920 1080 |
| 19 | [Return] browser_ID |
| 20 | |
| 21 | Break Firewall |
| 22 | [Documentation] Break firewall. |
| 23 | [Arguments] ${HOST} ${HOST_USERNAME} ${HOST_PASSWORD} |
| 24 | ${status} ${value}= Run Keyword And Ignore Error Telnet.Open Connection |
| 25 | ... ${HOST} prompt=# |
| 26 | Run Keyword If '${status}'=='PASS' Telnet.Login ${HOST_USERNAME} |
| 27 | ... ${HOST_PASSWORD} login_prompt=Username: password_prompt=Password: |
| 28 | |
| 29 | Login To GUI |
| 30 | [Documentation] Log into web GUI. |
| 31 | [Arguments] ${URL} ${xpath_uname} ${username} |
| 32 | ... ${xpath_password} ${password} ${xpath_signin} ${logo} |
| 33 | Go To ${URL} |
| 34 | Input Text ${xpath_uname} ${username} |
| 35 | Input Password ${xpath_password} ${password} |
| 36 | Click Button ${xpath_signin} |
| 37 | Wait Until Page Contains Element ${logo} |