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

Jarmo Pertman closed WTR-486.
-----------------------------

    Resolution: Fixed

Fixed in commit 
https://github.com/bret/watir/commit/3846b6f300f5210df6b196eeeb15684b6e25378b

> table rows returns first row n times
> ------------------------------------
>
>                 Key: WTR-486
>                 URL: http://jira.openqa.org/browse/WTR-486
>             Project: Watir
>          Issue Type: Bug
>          Components: Table
>    Affects Versions: 2.0
>         Environment: Windows XP with IE 8
>            Reporter: Michael M
>            Priority: Critical
>
> I'm trying to upgrade to Watir 2.0.1 from 1.9.2, but am running into a few 
> issue, the largest as this point is that the rows/tds method on a table 
> returns a reference to the first row for each row in the table.
> Example watir code:
> require 'watir' 
> browser = Watir::Browser.new 
> browser.goto "http://jira.openqa.org/secure/Administrators.jspa"; 
> browser.table(:id, 'administrators').rows.each do |row|
>   puts
>   puts row.inspect
>   puts row.text
> end
> Output:
> #<Watir::TableRow:0x7f3d4a12 located=true how={:index=>0} what=nil>
> System Administrators
> #<Watir::TableRow:0x..fc39cc0a located=true how={:index=>0} what=nil>
> System Administrators
> Explanation of what I am seeing:
> The correct number rows are returned, but each row is a reference to the 
> first row. The HTML and text are always that of the first row. The index in 
> the inspection is always 0.

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