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