| # | Result | Name | Parameter | Duration |
|
1 |  | enableJavaScript
|
| 16 |
|
2 |  | invoke
Open the page with form and JS
Resulting page |
| -> complete url | http://localhost:19090/selftest/form.jsp |
| url | form.jsp |
| 112 |
|
3 |  | verifyXPath
|
| text | true |
| xpath | not(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 13 |
4
 |  | group
first click activates |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | true |
| name | beer |
| value | alcohol |
| 26 |
|
2 |  | verifyXPath
|
| text | true |
| xpath | boolean(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 22 |
| 63 |
5
 |  | group
2nd click does nothing |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | true |
| name | beer |
| value | alcohol |
| 8 |
|
2 |  | verifyXPath
|
| text | 1 |
| xpath | count(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 20 |
| 31 |
|
6 |  | clickButton
Resulting page |
| 81 |
7
 |  | group
Uncheck |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | false |
| name | beer |
| value | alcohol |
| 8 |
|
2 |  | verifyXPath
|
| text | false |
| xpath | boolean(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 11 |
| 22 |
8
 |  | group
2nd click does nothing |
| # | Result | Name | Parameter | Duration |
|
1 |  | setCheckbox
|
| checked | false |
| name | beer |
| value | alcohol |
| 8 |
|
2 |  | verifyXPath
|
| text | false |
| xpath | boolean(//form/input[@name='beer'][@value='alcohol']/@checked) |
| 12 |
| 28 |