[
http://jira.openqa.org/browse/WTR-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20271#action_20271
]
Michael M commented on WTR-486:
-------------------------------
Here's the output from Ruby 1.9.2 for the same ruby code above:
#<Watir::TableRow:0x1fbfe1fc located=false how=:index what=1>
System Administrators
#<Watir::TableRow:0x1ad4f214 located=false how=:index what=2>
Here is the list of system administrators for this installation of JIRA.
System Administrators have complete administrative rights including permission
to manage underlying JIRA system configuration such as backups and services.
... removed names for this post ...
> 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