webdriver_test_tools.testcase.safari module

class webdriver_test_tools.testcase.safari.SafariTestCase(methodName='runTest')[source]

Bases: webdriver_test_tools.testcase.webdriver.WebDriverTestCase

Implementation of WebDriverTestCase using Safari webdriver

Driver info


This driver is platform-specific, so it is disabled by default. It can be enabled in <test_package>/config/browser.py by setting the corresponding value in BrowserConfig.ENABLED_BROWSERS to True.


Safari’s webdriver is missing certain features of the webdriver API, which can cause test failures. As of Safari 11.0.3, issues with the following modules have been encountered during testing:

  • selenium.webdriver.common.action_chains

  • selenium.webdriver.support.select

DRIVER_NAME = 'Safari'
SHORT_NAME = 'safari'
CAPABILITIES = {'browserName': 'safari', 'platform': 'MAC', 'version': ''}

Returns an initialized WebDriver object. Browser test case classes must implement this.