forked from up1/course-robotframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path08_todo.txt
37 lines (31 loc) · 1.09 KB
/
08_todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
*** Settings ***
Library Selenium2Library
*** Testcases ***
Add New My TODO with count
Set Selenium Speed 1
Open Browser http://up1todo.appspot.com/
Wait Until Page Contains Element todo_text
${before count}= Get Matching Xpath Count //li
Input Text todo_text My TODO...
Click Button todo_button
${after count}= Get Matching Xpath Count //li
${result}= Evaluate ${after count}-${before count}
Should Be Equal As Integers 1 ${result}
Close Browser
Check First Page
Open Browser http://up1todo.appspot.com/
Wait Until Page Contains My TODO
Wait Until Page Contains Element todo_text
Wait Until Page Contains Element todo_button
Close Browser
Add New My TODO
Open Browser http://up1todo.appspot.com/
Input Text todo_text First TODO...
Click Button todo_button
Wait Until Page Contains First TODO...
Close Browser
Mark Success status of Latest My TODO
Open Browser http://up1todo.appspot.com/
Wait Until Page Contains Element todo_text
${count}= Get Matching Xpath Count //li
Click Element xpath=//li[${count}]