Error connecting to new window
I am trying to find the best way to connect to a new browser. I have used the following successfully.
browser.attach(:title, "title")
I read on the Watir development group that the preferred way to do this is:
browser.attach(:title=>"title")
This syntax seems to work for all other elements besides the attach method. The error method I am getting is ArgumentError: wrong number of arguments (1 for 2)
.
My tests are working fine, I'm just wondering if the attach method supports both ways to do it.
+2
a source to share