Similar bug:

HTML:

<html>
        <body>
                <a href="" id="link_id" name="link_name">link 1</a>
                <input type="radio" id="radio_id" name="radio_name" />
        </body>
</html>

IRB:

irb
require 'watir'
ie = Watir::IE.attach(:title, //)
ie.radios.each { | item | puts item.id }

OUTPUT:

link_id

and it works ok if html is:

<html>
        <body>
                <input type="radio" id="radio_id" name="radio_name" />
                <a href="" id="link_id" name="link_name">link 1</a>
        </body>
</html>


-----Original Message-----

I looked at tracker at http://rubyforge.org/projects/wtr/ and I did not find
this bug (example is for 'id', but I reproduced it also for 'name'):

HTML:

<html>
        <body>
                <a href="" id="link_id" name="link_name">link 1</a>
                <input type="checkbox" id="checkbox_id" name="checkbox_name"
/>
        </body>
</html>

IRB:

irb
require 'watir'
ie = Watir::IE.attach(:title, //)
ie.checkboxes.each { | item | puts item.id }

OUTPUT:

link_id

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to