| # | Result | Name | Parameter | Duration |
|
1 |  | enableJavaScript
|
| 3 |
|
2 |  | invoke
Open the page with form and JS
Resulting page |
| -> complete url | http://localhost:19090/selftest/form.jsp |
| url | form.jsp |
| 74 |
|
3 |  | verifyXPath
|
| text | true |
| xpath | not(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 49 |
4
 |  | group
first click activates |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | true |
| name | beer |
| value | alcohol |
| 20 |
|
2 |  | verifyXPath
|
| text | true |
| xpath | boolean(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 120 |
| 144 |
5
 |  | group
2nd click does nothing |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | true |
| name | beer |
| value | alcohol |
| 18 |
|
2 |  | verifyXPath
|
| text | 1 |
| xpath | count(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 35 |
| 57 |
|
6 |  | clickButton
Resulting page |
| 138 |
7
 |  | group
Uncheck |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | false |
| name | beer |
| value | alcohol |
| 6 |
|
2 |  | verifyXPath
|
| text | false |
| xpath | boolean(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 37 |
| 47 |
8
 |  | group
2nd click does nothing |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | false |
| name | beer |
| value | alcohol |
| 9 |
|
2 |  | verifyXPath
|
| text | false |
| xpath | boolean(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 20 |
| 122 |