tags:

views:

23

answers:

1

I'm trying to figure out the best way to attach to a new browser. I've been successful using the following:

browser.attach(:title, "title")

I was reading over at the wtr-development group that the preferred way to do it is like this:

browser.attach(:title=>"title")

This syntax seems to work for all other other elements, except for the attach method. The error method I get is "ArgumentError: wrong number of arguments (1 for 2)"

My tests are running fine, I'm just curious if the attach method should support both ways of doing this.

+1  A: 

I have noticed the same thing recently. I guess it is a bug. Would you create a ticket?

http://jira.openqa.org/browse/WTR

Željko Filipin
This has been entered as WTR-439.
marc
Thanks, I just got e-mail notification for the ticket. Notification is also sent to [wtr-development](http://rubyforge.org/mailman/listinfo/wtr-development) list, I am sure somebody will take a look at it soon.
Željko Filipin
Yes, it is a bug.
Bret Pettichord