b.send_keys :tab
That line above doesn’t work with safari on my mac. I am running watir-webdriver 0.6.1 and selenium-webdriver 2.22.2.
I get the following error:
Failure/Error: b.send_keys :tab
Selenium::WebDriver::Error::UnknownError:
Maximum call stack size exceeded.
I haven’t installed safari-driver. Just running directly with the help of the above 2 gems.
Safari support has only recently been added to webdriver, and as far as I know you can’t drive safari without safari-driver (which takes the form of an safari browser extension that you need to compile.
To quote from the Selenium site:
i’d start by following the instructions here
If you are not comfortable with that, I’d test against Firefox or Chrome (which represent a much larger userbase in any event)