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.
this is the error you get:
ArgumentError: wrong number of arguments (1 for 2)