robotframework-demo/FirstAutoTestCase/FirstAutoTestCase.robot

15 lines
503 B
Plaintext

| *** Settings *** |
| Library | Selenium2Library |
| *** Test Cases *** |
| HelloWorld |
| | Open Browser | https://www.baidu.com/ | Firefox |
| | Wait Until Element Is Visible | id=kw | 30s | 搜索框定位失败 |
| | Set Focus To Element | id=kw |
| | Input Text | id=kw | HelloWorld |
| | Wait Until Element Is Visible | id=su | 30s | 搜索框定位失败 |
| | Set Focus To Element | id=su |
| | Click Element | id=su |
| | Sleep | 5s |
| | Close Browser |