Domanda

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. Any help would be much appreciated.

È stato utile?

Soluzione

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:

While ready for use, the SafariDriver still requires a bit of manual intervention before you can start writing tests. If you're not comfortable checking out and building the Selenium project from source, you may want to wait for us to make a general SafariDriver release.

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)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top