Tag Archives: SafariDriver

Uninstall old SafariDriver on recent versions of Safari

15 Mar

Aside from not needing SafariDriver starting in Safari 10 (or was it 9? I forget) and requiring recent versions of Selenium with older versions of Selenium paired with older Safari using SafariDriver, if you’re like me and haven’t used Selenium/SafariDriver in a while, you might have left the browser with SafariDriver extension.

If you update Mac OS X and Safari, you may still have the extension installed unless you specifically uninstall it.

One interesting quirk about having it installed is that it can now cause problems on certain websites (likely from same core issue from something in the extension’s codebase):

TypeError: Value is not a sequence

This came up for the websites from my company as well as Apple’s iCloud.com.

Once I uninstalled the extension, everything was fine.

Advertisements

Building and installing SafariDriver more easily

9 Nov

It looks like the current wiki instructions for building SafariDriver extension

http://code.google.com/p/selenium/wiki/SafariDriver

may still be too complicated a process for average users to build and install. This blog post kind of helps:

http://rationaleemotions.wordpress.com/2012/05/25/working-with-safari-driver/

but in case one still has issues, I go one step further…

I’ve provided a shared repository for downloading packaged as well as compiled binaries of the extension so one can easily install or build the extension.

There is a section 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 Apple developer certificate (e.g. do you trust me?).

I also have another section for uncompiled but packaged 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 Apple certificate, no need to SVN checkout nor run the go script to get/build source.

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

Update 2/9/2013

You no longer have to do this for SafariDriver versions 2.29 and above. It’s now bundled in with the server JAR (and Java bindings) so that it will auto-install and uninstall whenever you run a test, similar to the WebDriver extension for Firefox. There are also options to keep old behavior (assume you have extension already installed on Safari) or to specify using your own built extension to auto-install & uninstall instead of the default bundled in the JAR. See http://code.google.com/p/selenium/issues/detail?id=3772

Update 2015

FYI, you now need Apple Developer Program registration ($99/yr) in order to generate the SSL certificates needed to build SafariDriver from source. It used to be free with Safari Developer program. With that in mind, it also no longer makes sense to build SafariDriver on Windows anymore, since you typically are a Mac user if registering for the Apple developer program anyways.

Abiral Shakya's Blog

Learning, Improving and Sharing

Tea in Eighteenth-Century Britain

History of Tea Project at Queen Mary University of London

Phimosis - A Simple Cure (That is working for me)

No nonsense, no adverts, no sales pitch, just honest information.

Glass Onion Blog

Cheat sheets, post-its and random notes from the desk of a programmer

Abode QA

A Hub For Testing Minds...

The Test Therapist

Performance & Security Testing Blog

chrysohous

a programmer's hub

Let's Not Crash and Burn

it makes your brain tingle

Perform

“Incinerate Ignorance”

Anastasia Writes

politics, engineering, parenting, relevant things over coffee.

One Software Tester

Trying To Make Sense Of The World, One Test At A Time

the morning paper

a random walk through Computer Science research, by Adrian Colyer

RoboSim (Robot Simulator)

Visualize and Simulate the Robotics concepts such as Localization, Path Planning, P.I.D Controller

ÜberDev

open notebook

a happy knockout mouse.

my journey into computer science

Perl 6 Advent Calendar

Something cool about Perl 6 every day

technolinchpin

Inspire and spread the power of collaboration

Niraj Bhatt - Architect's Blog

Ruminations on .NET, Architecture & Design

Pete Zybrick

Bell Labs to Big Data