ok radioButton: Tests related to radio buttons with JavaScript

Test started at Thu Oct 02 11:31:35 CEST 2008, lasting 771 ms.
Source: /raid/volume1/opt/webtest/webtestCC/CanooFunctionalTesting/selftests/tests/radioButton.xml:64:
Base URL (used by invoke steps with a relative URL): http://localhost:19090/selftest/
#ResultNameParameterDuration
  1okenableJavaScript
enabletrue
28
  2okinvoke
Open the page with form and JS
Resulting page
-> complete urlhttp://localhost:19090/selftest/form.jsp
urlform.jsp
111
  3okverifyXPath
texttrue
xpathnot(//form/input[@name='myRadioButton']/@checked)
20
  4okverifyXPath
chocolateFlavor is initially disabled
texttrue
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
46
  5oksetRadioButton
namemyRadioButton
valuemint
39
  6okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
106
  7okverifyXPath
textmint
xpath//form/input[@name='myRadioButton'][@checked]/@value
24
  8okverifyXPath
chocolateFlavor is still disabled
texttrue
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
36
  9okclickButton

Resulting page
name
92
  10okverifyText
Checks the received value from radio button
textmyRadioButton: mint
3
  11okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
32
  12okverifyXPath
textmint
xpath//form/input[@name='myRadioButton'][@checked]/@value
18
  13oksetRadioButton
namemyRadioButton
valuechocolate
41
  14okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
22
  15okverifyXPath
textchocolate
xpath//form/input[@name='myRadioButton'][@checked]/@value
22
  16okverifyXPath
chocolateFlavor is enabled
textfalse
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
11
  17oksetRadioButton
2nd click is a no-op
namemyRadioButton
valuechocolate
30
  18okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
24
  19okverifyXPath
textchocolate
xpath//form/input[@name='myRadioButton'][@checked]/@value
32
  20okverifyXPath
chocolateFlavor is still enabled
textfalse
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
34

Back to Test Report Overview