Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release Notes
=============

1.5 (unreleased)
----------------
- Added Safari Browser.
[zmlpjuran]

1.4
---
- Added keywords for verifying text entered into textarea elements.
Expand Down
7 changes: 6 additions & 1 deletion src/Selenium2Library/keywords/_browsermanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down