Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple parameters? #4

Open
cheezy opened this issue Oct 2, 2010 · 1 comment
Open

Multiple parameters? #4

cheezy opened this issue Oct 2, 2010 · 1 comment

Comments

@cheezy
Copy link

cheezy commented Oct 2, 2010

I've written a simple dsl that a nice abstraction over Xwatir. The dsl always passes a has to the method. For example:

button(:id => 'some_id') OR button(:id => 'some_id', :index => 1)

This works fine on Watir and Firewatir but fails in Safariwatir.

@TreyE
Copy link
Contributor

TreyE commented Oct 4, 2010

Yeah, currently this is well known bug. It's something we need to put in a TODO section or something.

Right now, most methods don't support varargs, where the watir spec clearly identifies them as needing to do so.

For example, you're supposed to be able to find a div by "id" using simply:
browser.div("id"), or browser.div({ :id => "id" })
But right now watir only supports:
browser.div(:id, "id")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants