Issue Details (XML | Word | Printable)

Key: WTR-196
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Bret Pettichord
Reporter: Bret Pettichord
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

Multiple Attribute support is broken in li, etc

Created: 28/Jan/08 04:59 PM   Updated: 22/Feb/10 09:27 AM   Resolved: 27/May/08 10:26 PM
Component/s: None
Affects Version/s: 1.5.3
Fix Version/s: 1.5.5


 Description  « Hide

This code gives a wrong number of arguments error, even though there is code to support multiple attributes for li

@browser.li(:class => 'model_name', :text => owner_name)

This is a workaround for the problem. This actually works!

name_field = @browser.li({:class => 'model_name', :text => owner_name}, nil)

Looks like the error also affects ul, h1-h6, and maybe more.



Sort Order: Ascending order - Click to sort in descending order
Bret Pettichord added a comment - 27/May/08 09:19 PM

this is the error you get:

ArgumentError: wrong number of arguments (1 for 2)


Bret Pettichord added a comment - 27/May/08 10:26 PM

This is fixed with commit 1328. The following now support multiple attributes: li, ul, map, area, h1, h2, h3, h4, h5, h6.