you're reading...

Working With Safari Driver

With Safari Driver being introduced as part of Selenium 2.21.0 a lot of people seem to be having problems with getting it setup.

So here’s what worked for me, that I am now going to share with you as well.

First step would be to register yourself at the Apple Site for “Safari Developer Program” and you would be given a certificate to use. This is an absolute must.

You can complete the registration process by logging in/signing in  here.

Once you are done with the sign-up process you can login from here.

Click on the Get Started link to download your certificate or load this URL directly on your browser to get your certificate created.

Your certificate screen on the apple website should look something like this :

Make sure you click on the “Download” button here and get your certificate saved to your local file system.

After the certificate is downloaded, make sure you add the certificate to your local system (In Windows 7 I merely double click the cert and then go through with the certificate installation wizard)

Now download the extension from here

DISCLAIMER : The above extension WILL ONLY WORK WITH SELENIUM 2.21.0. Please DONOT attempt to use it with ANY OTHER SELENIUM VERSION.

Unzip the extension to your local file system. After unzipping here’s how my directory to which I unzipped it looked like.

Now that we have the certificate added to our local machine, and the Safari Extension downloaded and unzipped to the file system, lets go about adding the Safari Extension to the browser.

In order to add an extension to the browser, you would need to add it to Safari via the Develop Menu. This is by default not shown to the users. Here’s how you enable it.

First invoke the preferences window as shown below:

Now enable the Develop menu bar item as shown below:

Now that the Develop menu is enabled in the menu bar, lets start off with adding the Safari Extension.

Invoke the Extension Builder window as shown below:

From the Extension Builder window, Choose “Add Extension” as shown below:

When you choose Add Extension, you should see a File Open Dialog box from where you need to choose the directory to which you unzipped the downloaded extension zip file, as shown below:

Once you hit the “Select Folder” button you should see a screen as below :

Pay Close attention to the above screen and you will notice that the certificate that you installed earlier to your local file system is being shown. This is very important. Without this you cannot install the extension.

Now click the Install button and you should see a screen as below. With that we are done with adding the extension to Safari browser.

Now here’s a sample code that can be used which should work :

package raw.code;

import org.openqa.selenium.safari.SafariDriver;
import org.testng.annotations.Test;

public class LaunchSafari {
    public void spawnSafari() {
        SafariDriver driver = new SafariDriver();

Here are the console logs :

May 25, 2012 10:24:07 PM org.openqa.selenium.safari.SafariDriverServer start
INFO: Server started at http://D-MAA-00398350:19514/
May 25, 2012 10:24:10 PM org.openqa.selenium.safari.SafariDriverWebSocketHandler onOpen
INFO: Connection opened
May 25, 2012 10:24:10 PM org.openqa.selenium.safari.SafariDriverWebSocketHandler onMessage
INFO: Received message: {"status":0,"value":{"browserName":"safari","version":"5.1.7","platform":"WINDOWS","javascriptEnabled":true,"takesScreenshot":true,"cssSelectorsEnabled":true},"id":"16e299d2-b2b7-4916-b4a3-d3302b0fcf8a"}
May 25, 2012 10:24:10 PM org.openqa.selenium.safari.SafariDriverConnection onMessage
INFO: Processing message: {"status":0,"value":{"browserName":"safari","version":"5.1.7","platform":"WINDOWS","javascriptEnabled":true,"takesScreenshot":true,"cssSelectorsEnabled":true},"id":"16e299d2-b2b7-4916-b4a3-d3302b0fcf8a"}
May 25, 2012 10:24:15 PM org.openqa.selenium.safari.SafariDriverWebSocketHandler onMessage
INFO: Received message: {"status":0,"id":"e7b5f852-c8eb-4df4-8868-f6557391ca74"}
May 25, 2012 10:24:15 PM org.openqa.selenium.safari.SafariDriverConnection onMessage
INFO: Processing message: {"status":0,"id":"e7b5f852-c8eb-4df4-8868-f6557391ca74"}
May 25, 2012 10:24:15 PM org.openqa.selenium.safari.SafariDriverWebSocketHandler onMessage
INFO: Received message: {"status":0,"id":"d3947598-ea24-4b3e-84fb-fbb01f8a51e9"}
May 25, 2012 10:24:15 PM org.openqa.selenium.safari.SafariDriverConnection onMessage
INFO: Processing message: {"status":0,"id":"d3947598-ea24-4b3e-84fb-fbb01f8a51e9"}
May 25, 2012 10:24:15 PM org.openqa.selenium.safari.SafariDriverWebSocketHandler onClose
INFO: Connection closed
May 25, 2012 10:24:15 PM org.openqa.selenium.safari.SafariDriverServer stop
INFO: Stopping server
PASSED: spawnSafari

    Default test
    Tests run: 1, Failures: 0, Skips: 0


64 thoughts on “Working With Safari Driver

  1. What directory do I put the extension in ? Does it matter ? What about building selenium with the cert in it ?

    Posted by Tyler | May 26, 2012, 1:18 am
    • You can have the extensions in any directory. You would need to just ask Safari browser to install the extension from the directory wherein you put it. With respect to you second question, am not sure as to what you mean by building selenium with the cert in it. The cert needs to be in your system and not in your selenium jars (which is what you get when you build the code)

      Posted by Confusions Personified | July 6, 2012, 1:04 pm
  2. Hello!
    I have followed the steps entirely, but my Windows XP is not recognizing the certificate. What can I do about it? I have re-done the steps several times and installed the certificate in Personal and in Trusted Root Certification Authorities but still it says “No Certificate Installed”.
    Please advise. Thank you.

    Posted by Johnny C | July 2, 2012, 3:21 pm
  3. Hi! Thanks for the information, your information is meaningful but I am still struggling while certification creation because in the following https://developer.apple.com/ios/renew/index.action safari developer program chechkbox is not enabled. And because It is disabled I am not able to download the certificate.

    Posted by Ships | July 18, 2012, 4:40 pm
  4. Extension is needed in MAC OS ? If Yes, how to build the certificate in MAC OS?

    Posted by Mukesh | July 21, 2012, 3:57 pm
  5. Hi,
    What is meant by “build SafariDriver extension”? Is it necessary to get the cerficate from apple? I downloaded SafariDriver.safariextension-2.21.0.zip from http://code.google.com/p/selenium/downloads/detail?name=SafariDriver.safariextension-2.21.0.zip&can=4&q= Is there any use of this with out apple certificate?

    Posted by Shravan Kumar | July 25, 2012, 6:15 pm
  6. Hi,
    Thanks for the information. I followed all the steps and tried to run the script. But I could not succeed. After running the script safari browser opens ans stuck with “SafariDriver requesting connection at ws://localhost:42886/wd”. Am I missing anything here. Please advice. Thanks in advance.

    Posted by Siddhardha | August 10, 2012, 12:22 pm
  7. Hi i am successfully done the safari developer certification, if i am run the my script i am getting error like in safari browser http://localhost/25478 like… Please anyone help to me what to i do.

    Posted by siva prasad | August 22, 2012, 9:23 pm
  8. Hi Thanks for the tutorial. It seems the extension is deprecated. Is there any link for new extension?

    Posted by koti | September 25, 2012, 9:24 pm
  9. Hello,
    I have setup SafariWebdriver with the extension built and am successfully able to launch and even run the simple test that you have in your example. But, when I add commands which actually would interact with the window itself, then the test just hangs mid-air and then breaks. Do you have any thoughts as to why :
    “driver.navitgate().to(“http://google.com);” – WORKS &&

    “driver.manage().window().maximize();” – DOES NOT WORK, HANGS & BREAKS
    “driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);” – DOES NOT WORK, HANGS & BREAKS

    Posted by Alister Ernest | October 9, 2012, 3:01 am
    • There could be many reasons. I have not played around with the SafariDriver in a full fledged manner. So am not sure. Have you tried reaching out in the selenium-users forum?

      Posted by Confusions Personified | October 9, 2012, 9:14 am
      • I have not posted this in the Selenium Users group yet. That would be my next stop. Just wanted to know if you had any thoughts about this issue. Anyway, thanks Krishnan, and will meet you on the users group with the same question.

        Posted by Ali - STAR | October 9, 2012, 11:00 am
      • Hello Krishnan , Thanks very much for your post, I am able to add the safariextention to my safari browser. when i try to run your sample code, i am getting following error message in console

        [TestNG] Running:

        Oct 17, 2012 1:02:06 PM org.openqa.selenium.safari.SafariDriverServer start
        INFO: Server started at http://RAODESKTOP:25527/
        FAILED CONFIGURATION: @BeforeTest createDriver
        java.lang.RuntimeException: Safari could not be found in the path!
        Please add the directory containing ”Safari.exe” to your PATH environment
        variable, or explicitly specify a path to Safari like this:
        *safari c:\blah\Safari.exe

        I tried adding to enviroment variable path like this C:\Program Files (x86)\Safari\Safari.exe still i am getting the same message.

        Please help me


        Posted by Rao | October 17, 2012, 5:41 pm
  10. Hi,i have followed all the steps to launch Safari with Selenium.I have the certification and i have create the Safari extension properly.But when i try to execute the driver in java WebDriver driver = new SafariDriver(); it starts the Safari instance but after some seconds of waiting it gives me this exception in Eclipse console:

    Exception in thread “main” org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    Build info: version: ‘2.25.0’, revision: ‘17482’, time: ‘2012-07-18 22:18:01’
    System info: os.name: ‘Windows XP’, os.arch: ‘x86’, os.version: ‘5.1’, java.version: ‘1.6.0_31’
    Driver info: driver.version: SafariDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:493)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:182)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:110)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)
    at org.openqa.selenium.safari.SafariDriver.(SafariDriver.java:45)
    at org.openqa.selenium.safari.SafariDriver.(SafariDriver.java:41)
    at ucs.TestCase.loadSafariDriver(TestCase.java:138)
    at ucs.TestCase.runTestCase(TestCase.java:69)
    at ucs.uc1.Tc1.run(Tc1.java:371)
    at launchers.LaunchUc1.launch(LaunchUc1.java:35)
    at launchers.LaunchUc1.main(LaunchUc1.java:16)
    Caused by: java.lang.IllegalStateException: Executor has not been started yet
    at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
    at org.openqa.selenium.safari.SafariDriverCommandExecutor.execute(SafariDriverCommandExecutor.java:123)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
    … 10 more

    it seems that it’s trying to connect remotely but the instance is on localhost.
    What does it miss to configure?

    Posted by John | October 10, 2012, 9:00 pm
  11. Hi Krishnan

    I have solved the problem by reading your suggestion in one of other forums, I have used Selenium 2.21.0 jars instead of 2.25.0 jars with safari browser. then I was able to launch the safari browser..

    Thanks once again for providing valuable support


    Posted by Rao | October 22, 2012, 7:40 pm
    • any idea how to build extension for latest selenium jar e.g. 2.25.0?

      Posted by Mal | February 3, 2013, 12:03 am
    • Hi, I am trying to add safari extension on Windows7. I have installed the certificate using openSSL. still when I try to add extension, it says ‘No safari developers certificate’. Are you able to execute your test on Windows? How did you get the safari developer’s certificate working? Please let me know. Thanks

      Posted by neha | April 22, 2013, 6:20 am
      • Neha,
        From 2.31 onwards you dont need any of this. SafariDriver takes care of everything.

        Posted by Confusions Personified | April 23, 2013, 6:21 am
      • I am trying for safari on windows7. I believe at this point there is not support for safari on windows7. I am looking for some workaround.

        Posted by Neha | May 17, 2013, 3:58 am
      • Can’t say for all users, but Safari and SafariDriver work on Windows 7. I’ve used with Selenium v2.28, v2.31, v2.32. With 2.28, I custom compiled my own extension as required and installed it to Safari. For 2.31 and 2.32, I just used the auto-install feature from Selenium and not worry about anything. And I’m using Safari 5.1 (7534.50) for Windows. And to note, you won’t find Safari 6 for Windows, only 5 and 4, and Apple stopped offering Windows downloads for them, so you’d have to find an archived copy somewhere. If you’re still having trouble best thing to do is post to Selenium/WebDriver user groups and ask for help there.

        Posted by autumnator | May 17, 2013, 7:34 am
      • On the OpenSSL issue, see my response to your other comment in this blog (further down the page).

        Posted by autumnator | May 17, 2013, 7:41 am
  12. Hi Krishnan,

    Thanks for all your input, I have added extensions to safari browser 5.1.7 as mentioned however getting following error. Any further suggestion to fix below will be highly appreciated.

    SetUp : OpenQA.Selenium.WebDriverException : Did not receive a connection from the Safari extension. Please verify that it is properly installed and is the proper version.
    TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

    Posted by Ram | November 6, 2012, 8:54 pm
  13. Since it appears many Selenium users are reading this blog post for installing SafariDriver extension, hoping my comment here will be useful. I notice some people have trouble following the instructions or even doing so have a bad build. So to help out the community, I’ve actually provided some ready made solutions.

    Go here: https://docs.google.com/folder/d/0B5KGduKl6s6-ZGpPZlA0Rm03Nms/edit

    There is a section with for compiled SafariDriver extensions that I’ve already built that you simply install. Use at your own risk if you don’t mind using an extension compiled with my personal certificate (e.g. do you trust me?). I also have another section for uncompiled version, where I’ve already extracted the SVN source for the given Selenium version and you simply need to extract the zip, then add & compile the extension using the Safari Extension Builder and your own certificate, no need to SVN checkout nor run the go script to get/build source.

    Posted by David | November 9, 2012, 1:55 am
    • Awesome David. Thanks for pitching in. Appreciate it.

      Posted by Confusions Personified | November 9, 2012, 2:03 am
    • I tried with uploading 2.25 safari drivers with selenium version2.2.5 and still expereiencing the following.
      I have also posted in selenium users form for help.

      SetUp : OpenQA.Selenium.WebDriverException : Did not receive a connection from the Safari extension. Please verify that it is properly installed and is the proper version.
      TearDown : System.NullReferenceException : Object reference not set to an instance of an object.


      Posted by Ram | November 9, 2012, 3:37 am
      • By the way, any issues with the SafariDriver extensions I provide, we can discuss in Selenium users forum. Rather not tie up this blog post with long comment discussion thread.

        Posted by David | November 9, 2012, 8:37 am
    • Hi David, I am getting error on windows7 while I try to generate the certificate. Any idea what could be wrong.

      C:\OpenSSL-Win32\bin>openssl req -new -key mykey.key -out CertificateSigningRequest.certSigningRequest -subj “/emailAddress=xxx@gmail.com, CN=xxx xxx, C=US”
      WARNING: can’t open config file: C\OpenSSL-Win32\bin\openssl.cfg
      Unable to load config info from C\OpenSSL-Win32\bin\openssl.cfg

      Posted by neha | April 22, 2013, 5:45 am
      • I’ve never tried the certificate setup using OpenSSL. Don’t know if that is supported. In fact, on Apple’s website, following this blog post here, Apple tells you the requirements for generating the ceritifcate. For Windows, you need the tool offered by Windows (forget its name), which on some OSes (XP, maybe even Windows 7) require you to download a hotfix/patch because the tool isn’t built into Windows by default. For Mac is easier, you simply use the KeyChain app to generate the certificate. Is there a reason you’re going with OpenSSL? I don’t recall Apple recommending it’s use, so using it is like an analogy to jailbreaking your iPhone.

        Posted by autumnator | May 17, 2013, 7:40 am
  14. Hi , am using Selenium Webdriver 2.25 with safari driver extension 2.25 for safari browser 6.0 version on Mac 10.7.4, while trying to launch the Safari driver thru Selenium, safari browser is not coing to the front, its minimized in the dock with the respective navigations happening as mentioned in the Selenium code.

    Pls suggest how to make safai browser active when safri driver is launched.. am uisng code below..

    WebDriver driver = new SafariDriver();

    Posted by Madhusudhan | November 21, 2012, 4:37 pm
  15. Hi,

    Please find the Environmental info
    Selenium version:22,24 WebDriver
    OS: Windows XP
    Browser: Safari 5.1
    Using the .NET bindings (c#)

    Does WebDriver keep different extension for Java and .NET? When I create extension from trunk and try to run .NET application, it throws error as below:

    SetUp : System.NullReferenceException : Object reference not set to an instance of an object.
    TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

    But same application works fine when I run Java, it started working.

    I am able to launch safari browser for .Net environment but not able to run. Please suggest me for need any thing more. Appreciate your help.

    Posted by Monika | December 12, 2012, 4:40 pm
  16. Also want to point out: if you want to distribute (internally w/in your organization) the extension that you build or you want to deploy across multiple machines, don’t repeat the same steps outlined in this blog post (the original post at time of this comment). Instead, at the step where you click install in Safari Extension Builder, click Build Package. And give the output file name you want in the file browse dialog that pops up. The file extension will be “.safariextz” or so. This output file will be the binary installer file you can run to install on any machine. You can do this step after you install on the first machine. Just go back to Extension Builder and click Build Package.

    The installer file must be copied to each machine you deploy on, even if you host on fileshare, unless hosted over a web/FTP server. Because there’s a quirk with Apple/Safari in that when you run installer, it will delete the installer file upon completion. So you want to archive a copy.

    The installer won’t give a prompt that install finished. You just check that it appears under Safari > Preferences > Extensions tab in list of extensions installed. You do get a prompt asking if you want to install when you run the installer. Run by double-click, or drag & drop to Safari, or File > Open from Safari.

    Note that you only need 1 Apple certificate to install on first machine and create the binary installer file. You do not need one certificate per user account or machine. Once you have installer, deploy to as many machines as you want.

    Posted by autumnator | December 19, 2012, 11:06 am
  17. One other comment, when checking out SVN source to build the extension files, the Selenium site (and original SafariDriver wiki page) just mentions how to checkout and build from latest trunk code. For specific releases of Selenium, the checkout source path for SVN would be like this: “http://selenium.googlecode.com/svn/tags/selenium-2.xx….” where you replace “xx…” with the appropriate Selenium release version number (major + minor, etc.). Thought I’d point it out to SVN novice users.

    Posted by autumnator | December 19, 2012, 11:49 am
  18. I am using selenium server jar – 2.29.0 is it required to still add the safari extension for grid 2 execution

    Posted by Srividya | February 7, 2013, 11:10 am
    • Yes, irrespective of whether you are doing runs via SafariDriver or via the Grid, you would still need to build the safari extension and deploy it to the safari browsers of your nodes.

      Posted by Confusions Personified | February 7, 2013, 11:58 am
      • FYI, per Selenium issue 3772, it appears v2.29 has the extension included with the JARs and auto-installed at runtime (and uninstalled at completion of a test) just like the WebDriver extension for Firefox, etc. There is still option to specify using your own extension (again installed at runtime, or preinstalled already on Safari browser). So there is no need to do the manual build & install steps anymore. And that is definitely true for next release (v2.30?) but I believe it’s already in v2.29. You’ll only need to follow steps on this blog for 3 cases: (1) using a release older than v2.29, (2) you want to use a custom Safari extension for whatever reason, or (3) you prefer to not have Selenium auto-install then uninstall extension at every test.

        Posted by autumnator | February 8, 2013, 12:05 am
  19. I have checked with selenium v2.29. I have also installed the safari extension but i’m still getting the same old “SafariDriver requesting connection at ws://localhost:..” issue.
    @Confusions Personified: “build the safari extension and deploy it to the safari browsers of your nodes” how to deploy it?

    Posted by masthijohna | February 8, 2013, 4:58 pm
  20. what downloaded extension? I don’t see one?

    Posted by Jeffrey | February 25, 2013, 11:30 pm
  21. I am on windows box,its not possible for me to create the certificate as I cant generate a CSR file on windows to proceed generating the certificate.And on windows box right now I get the following issue, any help is appreciated.

    ava.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(Unknown Source)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.read(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:59)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:465)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Posted by Shantala | August 21, 2013, 1:42 am
    • Am not sure what exactly are you talking about here. Did you read the post carefully ? The current version of Selenium [2.35.0 as we speak ] doesn’t require that you generate any certs. SafariDriver automatically takes care of this. If you still have queries I will encourage you to post on selenium-users google forum.

      Posted by Confusions Personified | August 21, 2013, 6:48 am
    • FYI to the uninformed, because Apple retired Safari (5) on Windows, e.g. Safari 6 (and below too?) is only available on Mac. With that change, Apple’s Safari developer certificate request process only allows and gives instructions for Mac.

      I believe the process may still work for PC, but you have to figure out yourself (or find the old instructions) because Apple’s not providing them anymore.

      Posted by autumnator | August 21, 2013, 7:12 am
  22. Hi,

    I am testing the Selenium Webdriver scripts on Safari/Mac.

    I followed the steps mentioned in this page. Now when i run the script, the safari browser is launched, but with a popup saying ‘Safari can’t verify the identity of the website ‘xxxxxxx’. As a result of this popup, the script run is not proceeding futher

    How do i overcome this? i have installed the certificate, and added ‘SafariDriver.safariextension’ as well to the ‘Extension Builder’

    Below are the commands used to start the hub and node(Both are started on the Mac itself):

    java -jar selenium-server-standalone-2.37.0.jar -role hub -port 5678

    java -jar selenium-server-standalone-2.37.0.jar -role node -hub http://localhost:5678/grid/register -browser “browserName=safari,setjavascriptEnabled=true,acceptSslCerts=true,platform=MAC”

    Kindly help me in solving this


    Posted by Sreedevi | March 14, 2014, 11:10 am
  23. Awesome Article!!!
    You can still create a certificate by generating the cer’s you need using openssl. Here’s the article that gives the instructions:

    Has anyone creeted an extension for 2.39?

    Posted by Phil | May 1, 2014, 11:21 am
    • Might I inquire why anyone would want to build the extension anymore? Yes, still great to do so, especially if one customizes the extension. But as of version 2.30+ the extension is auto included (and auto-installed by default) with the server JAR (and Java/.NET bindings). There’s little point to manually build and install the extension for most people anymore.

      Posted by autumnator | May 2, 2014, 2:06 am
    • Aside from my other response, thanks for the tip on generating the SSL certificate on Windows, since Apple took away the old instructions with the deprecation of Windows Safari 5.

      Posted by autumnator | May 2, 2014, 2:07 am
  24. Let know!!

    Posted by Phil | May 1, 2014, 11:22 am
  25. FYI, came across another way to generate developer certificate request on Windows: http://smarttechie.org/2013/12/13/how-to-create-apple-safari-extension-developer-certificate-for-windows/

    Posted by autumnator | January 28, 2015, 4:02 am
  26. This works for me. Thanks!

    Posted by Imtiaz Rocky Hossain | February 26, 2015, 3:41 am
  27. FYI, building SafariDriver from source will be more of a pain going forward. You’ll need the paid $99/yr Apple developer account to generate the SSL certificates needed to build Safari extensions. There will be no more free Safari developer program accounts. See my post here for details: https://groups.google.com/forum/#!topic/selenium-users/k9uXHdxgKiE

    But this is no issue to those who already have the paid account for iOS app testing/development

    Posted by autumnator | June 18, 2015, 8:55 am
  28. Hi..
    I am working on Safari7.0 on Mac OS 10.5.9 with selenium 2.45 driver. I am facing while working on iframes. I am able to switch to a iframe but when i try to switch back to main content, using driver.switchTo().defaultContent(), i getting timeout exception. Tried with giving wait time but no luck.

    sample code:
    driver.switchTo.frame(driver.findElement(by.id(“abc”))); // Works fine
    driver.findElement(by.name(“name”)).sendKeys(“bbbb”);// works fine
    driver.switchTo.defaultContent();// hanges/ test stopped and reported failure

    Posted by Balu | October 9, 2015, 11:48 am
  29. https://developer.apple.com/programs/start/safari/create.php

    page not found error is coming.

    Posted by Digvijay | June 28, 2016, 8:24 pm
    • I think a lot of things have changed and I have not gone back to updating my post.. mainly because the entire notion of extension is perhaps going to go away with the next version of OSX (sierra) when apple ships their implementation of SafariDriverServer along with the OS itself.

      Posted by Confusions Personified | July 6, 2016, 7:51 pm
  30. After exploring a handful of the articles on your blog, I really appreciate
    your technique of blogging. I added it to my bookmark site list and
    will be checking back in the near future. Please check out my web site
    as well and tell me how you feel.

    Posted by Drum Corps Videos | April 22, 2017, 2:04 pm


  1. Pingback: Building and installing SafariDriver more easily « autumnator - November 9, 2012

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: