Skip to content
Browse files

Merge pull request #247 from emanlove/master

Added Safari browser support.
  • Loading branch information...
2 parents 8c8247f + fd68fc5 commit 6d161a0d21436be6179520d57390b56df488d2de @emanlove emanlove committed
Showing with 11 additions and 1 deletion.
  1. +5 −0 CHANGES.rst
  2. +6 −1 src/Selenium2Library/keywords/_browsermanagement.py
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
@@ -531,6 +533,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

0 comments on commit 6d161a0

Please sign in to comment.
Something went wrong with that request. Please try again.