| # | Result | Name | Parameter | Duration |
|
1 |  | enableJavaScript
|
| 28 |
|
2 |  | invoke
Open the page with form and JS
Resulting page |
| -> complete url | http://localhost:19090/selftest/form.jsp |
| url | form.jsp |
| 111 |
|
3 |  | verifyXPath
|
| text | true |
| xpath | not(//form/input[@name='myRadioButton']/@checked) |
| 20 |
|
4 |  | verifyXPath
chocolateFlavor is initially disabled |
| text | true |
| xpath | boolean(//form/input[@name='chocolateFlavor']/@disabled) |
| 46 |
|
5 |  | setRadioButton
|
| name | myRadioButton |
| value | mint |
| 39 |
|
6 |  | verifyXPath
|
| text | 1 |
| xpath | count(//form/input[@name='myRadioButton']/@checked) |
| 106 |
|
7 |  | verifyXPath
|
| text | mint |
| xpath | //form/input[@name='myRadioButton'][@checked]/@value |
| 24 |
|
8 |  | verifyXPath
chocolateFlavor is still disabled |
| text | true |
| xpath | boolean(//form/input[@name='chocolateFlavor']/@disabled) |
| 36 |
|
9 |  | clickButton
Resulting page |
| 92 |
|
10 |  | verifyText
Checks the received value from radio button |
| 3 |
|
11 |  | verifyXPath
|
| text | 1 |
| xpath | count(//form/input[@name='myRadioButton']/@checked) |
| 32 |
|
12 |  | verifyXPath
|
| text | mint |
| xpath | //form/input[@name='myRadioButton'][@checked]/@value |
| 18 |
|
13 |  | setRadioButton
|
| name | myRadioButton |
| value | chocolate |
| 41 |
|
14 |  | verifyXPath
|
| text | 1 |
| xpath | count(//form/input[@name='myRadioButton']/@checked) |
| 22 |
|
15 |  | verifyXPath
|
| text | chocolate |
| xpath | //form/input[@name='myRadioButton'][@checked]/@value |
| 22 |
|
16 |  | verifyXPath
chocolateFlavor is enabled |
| text | false |
| xpath | boolean(//form/input[@name='chocolateFlavor']/@disabled) |
| 11 |
|
17 |  | setRadioButton
2nd click is a no-op |
| name | myRadioButton |
| value | chocolate |
| 30 |
|
18 |  | verifyXPath
|
| text | 1 |
| xpath | count(//form/input[@name='myRadioButton']/@checked) |
| 24 |
|
19 |  | verifyXPath
|
| text | chocolate |
| xpath | //form/input[@name='myRadioButton'][@checked]/@value |
| 32 |
|
20 |  | verifyXPath
chocolateFlavor is still enabled |
| text | false |
| xpath | boolean(//form/input[@name='chocolateFlavor']/@disabled) |
| 34 |