[ 
http://jira.openqa.org/browse/WTR-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zeljko closed WTR-326.
----------------------

    Resolution: Won't Fix

If this is still a problem, please report it here: 
https://github.com/watir/watir-classic/issues

> Watir:Buttons returns incorrect collection of buttons
> -----------------------------------------------------
>
>                 Key: WTR-326
>                 URL: http://jira.openqa.org/browse/WTR-326
>             Project: Watir
>          Issue Type: Bug
>          Components: HTML Controls
>    Affects Versions: 1.6.2
>         Environment: windows XP 32bit, IE7
>            Reporter: Katherine
>            Priority: Major
>             Fix For: Future
>
>
> Running the given below script for different html pages shows that 
> Watir:Buttons returns incorrect collection of buttons.
> It seems that Watir counts number of <input type="button"> elements, but 
> return <buttons>
> require 'watir'
>  test_site = 'http://localhost/test.html'
>  ie = Watir::IE.new
>  ie.goto(test_site)
>  ie.buttons.each do |a_button|
>    puts a_button.value
>  end
> =================================
> Case#1:
> <html>
>     <title>some title</title>
>     <body>
>             <button id="1" value="first button">1st button</button>
>             <button id="2" value="second button">2nd button</button>
>             <input type="button" id="6" value="6th button">
> </body>
> </html>
> Result:
> "1st button"
> =================================
> Case#2:
> <html>
>     <title>some title</title>
>     <body>
>             <button id="1" value="first button">1st button</button>
>             <button id="2" value="second button">2nd button</button>
>             <input type="button" id="6" value="6th button">
>             <input type="button" id="7" value="7th button">
> </body>
> </html>
> Result:
> "1st button
> 2nd button"

-- 
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

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

Reply via email to