[Wtr-development] [JIRA] Created: (WTR-461) Typo in README.rdoc, mismatch with example code

Stephan Kämper (JIRA) watirjira at gmail.com
Wed Oct 27 07:44:19 EDT 2010

Typo in README.rdoc, mismatch with example code 

                 Key: WTR-461
                 URL: http://jira.openqa.org/browse/WTR-461
             Project: Watir
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 1.6.6
         Environment: Any
            Reporter: Stephan Kämper

The README.rdoc (http://github.com/bret/watir/blob/master/README.rdoc) says:

Actual text:
> Setting and clearing a radio button
>  browser.radio(:value => "watir").set
>  browser.radio(:value => "watir".clear

Closing parenthesis is missing, should be 

> browser.radio(:value => "watir").clear

Additionally the example page (http://bit.ly/watir-example) as given in the code/README actually is:

<label class="ss-q-help" for="entry_2">Radio buttons</label>
<ul class="ss-choices"><li class="ss-choice-item"><label class="ss-choice-label"><input type="radio" name="entry.2.group" value="Watir" class="ss-q-radio" id="group_2_1">
Watir</label></li> <li class="ss-choice-item"><label class="ss-choice-label"><input type="radio" name="entry.2.group" value="Selenium" class="ss-q-radio" id="group_2_2">

This uses 'Watir' while the example code is 'watir' which in turn raises an exception:

> ...
> Watir::Exception::UnknownObjectException: Unable to locate element, using {:value=>"watir"}

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the Wtr-development mailing list