|
1 | | -*Setting* |
2 | | -Variables variables.py |
3 | | -Resource ../resource.robot |
4 | | -Test Setup Go To Page "forms/prefilled_email_form.html" |
5 | | - |
6 | | - |
7 | | -*Test Cases* |
| 1 | +*** Setting *** |
| 2 | +Test Setup Go To Page "forms/prefilled_email_form.html" |
| 3 | +Force Tags txtfields |
| 4 | +Variables variables.py |
| 5 | +Resource ../resource.robot |
8 | 6 |
|
| 7 | +*** Test Cases *** |
9 | 8 | Get Value From Text Field |
10 | | - ${text} = Get Value name |
11 | | - Should Be Equal ${text} Prefilled Name |
12 | | - Clear Element Text name |
13 | | - ${text} = Get Value name |
14 | | - Should Be Equal ${text} ${EMPTY} |
| 9 | + ${text} = Get Value name |
| 10 | + Should Be Equal ${text} Prefilled Name |
| 11 | + Clear Element Text name |
| 12 | + ${text} = Get Value name |
| 13 | + Should Be Equal ${text} ${EMPTY} |
15 | 14 |
|
16 | 15 |
|
17 | 16 | Input Unicode In Text Field |
18 | | - Input Text name ${unic_text} |
19 | | - ${text} = Get Value name |
20 | | - Should Be Equal ${text} ${unic_text} |
| 17 | + Input Text name ${unic_text} |
| 18 | + ${text} = Get Value name |
| 19 | + Should Be Equal ${text} ${unic_text} |
21 | 20 |
|
22 | 21 | Input Password |
23 | | - [Documentation] LOG 3 Typing password into text field 'password_field' |
24 | | - [Setup] Go To Page "forms/login.html" |
25 | | - Input Text username_field username |
26 | | - Input Password password_field password |
27 | | - Submit Form |
28 | | - Verify Location Is "forms/submit.html" |
| 22 | + [Documentation] LOG 3 Typing password into text field 'password_field' |
| 23 | + [Setup] Go To Page "forms/login.html" |
| 24 | + Input Text username_field username |
| 25 | + Input Password password_field password |
| 26 | + Submit Form |
| 27 | + Verify Location Is "forms/submit.html" |
29 | 28 |
|
30 | 29 | Press Key |
31 | | - [Setup] Go To Page "forms/login.html" |
32 | | - Cannot Be Executed in IE |
33 | | - Input Text username_field James Bond |
34 | | - Press Key password_field f |
35 | | - Press Key password_field \\9 |
36 | | - Press Key login_button \\10 |
37 | | - Verify Location Is "forms/submit.html" |
| 30 | + [Setup] Go To Page "forms/login.html" |
| 31 | + #Cannot Be Executed in IE |
| 32 | + Input Text username_field James Bond |
| 33 | + Press Key username_field \\\\HOME |
| 34 | + Press Key username_field \\\\END |
| 35 | + Press Key username_field \\\\ARROW_LEFT |
| 36 | + Press Key username_field \\\\ARROW_LEFT |
| 37 | + Press Key username_field \\\\ARROW_LEFT |
| 38 | + Press Key username_field \\\\ARROW_LEFT |
| 39 | + Press Key username_field \\\\ARROW_RIGHT |
| 40 | + Press Key username_field \\108 #This is the 'l' char |
| 41 | + ${text} = Get Value username_field |
| 42 | + Should Be Equal ${text} James Blond |
| 43 | + Press Key password_field f |
| 44 | + Press Key password_field \\9 |
| 45 | + Press Key login_button \\10 |
| 46 | + Verify Location Is "forms/submit.html" |
38 | 47 |
|
39 | 48 | Attempt Clear Element Text On Non-Editable Field |
40 | | - Run Keyword And Expect Error * Clear Element Text can_send_email |
| 49 | + Run Keyword And Expect Error * Clear Element Text can_send_email |
0 commit comments