Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added Safari browser support. #247

Merged
merged 2 commits into from

6 participants

@emanlove
Collaborator

No description provided.

@zmlpjuran

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

@emanlove
Collaborator

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

@zmlpjuran

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

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

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

@zmlpjuran

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

@tusoi

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

@zmlpjuran

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 http://code.google.com/p/selenium/issues/detail?id=4136 and star it to fix it soon

@CMTaylor

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.
View
5 CHANGES.rst
@@ -1,6 +1,11 @@
Release Notes
=============
+1.5 (unreleased)
+----------------
+- Added Safari Browser.
+ [zmlpjuran]
+
1.4
---
- Added keywords for verifying text entered into textarea elements.
View
7 src/Selenium2Library/keywords/_browsermanagement.py
@@ -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.