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