Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Added Safari browser support. #247

merged 2 commits into from

6 participants


No description provided.


I'm curious how adding safari can affect Firefox Click Element At Coordinates test.


@zmlpjuran: It should pass as long as native events are working with Safari.


@emanlove: I meant the Travis CI report for your commit, but then I observed that tests continuously fails from previous commits

@emanlove emanlove merged commit 6d161a0 into rtomac:master
This was referenced

How to use safari browser. Do we need any driver for that.


You need only python selenium2 library which is installed as dependency by default. For sophisticated deployment you can use selenium grid.


Drag and Drop keyword does not work on Safari. When running it raises error Unknown command: mouseMoveTo (WARNING: The server did not provide any stacktrace information). Could you please let me know if there is any solution on this issue?. Thanks


tusoi: Hi, this is known limitation of Safari driver, it is nothing that can be fixed on selenium2library as it is like "proxy" interpreter.
see and star it to fix it soon


This enhancement for Safari support doesn't seem to have made it to a release of Seleniu2Library yet. When is the next release planned? I'd really like to use this new feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2013
  1. @emanlove
  2. @emanlove
This page is out of date. Refresh to see the latest.
@@ -1,6 +1,11 @@
Release Notes
+1.5 (unreleased)
+- Added Safari Browser.
+ [zmlpjuran]
- Added keywords for verifying text entered into textarea elements.
7 src/Selenium2Library/keywords/
@@ -21,7 +21,8 @@
'htmlunit' : "_make_htmlunit",
'htmlunitwithjs' : "_make_htmlunitwithjs",
'android': "_make_android",
- 'iphone': "_make_iphone"
+ 'iphone': "_make_iphone",
+ 'safari': "_make_safari"
class _BrowserManagementKeywords(KeywordGroup):
@@ -82,6 +83,7 @@ def open_browser(self, url, browser='firefox', alias=None,remote_url=False,
| htmlunitwithjs | HTMLUnit with Javascipt support |
| android | Android |
| iphone | Iphone |
+ | safari | Safari |
Note, that you will encounter strange behavior, if you open
@@ -477,6 +479,9 @@ def _make_iphone(self , remote , desired_capabilities , profile_dir):
return self._generic_make_browser(webdriver.Remote,
webdriver.DesiredCapabilities.IPHONE, remote, desired_capabilities)
+ def _make_safari(self , remote , desired_capabilities , profile_dir):
+ return self._generic_make_browser(webdriver.Safari,
+ webdriver.DesiredCapabilities.SAFARI, remote, desired_capabilities)
def _generic_make_browser(self, webdriver_type , desired_cap_type, remote_url, desired_caps):
'''most of the make browser functions just call this function which creates the
Something went wrong with that request. Please try again.