Source code for webdriver_test_tools.testcase.safari

from .webdriver import *
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

[docs]class SafariTestCase(WebDriverTestCase): """Implementation of :class:`WebDriverTestCase <webdriver_test_tools.testcase.webdriver.WebDriverTestCase>` using Safari webdriver `Driver info <>`__ .. note:: This driver is platform-specific, so it is disabled by default. It can be enabled in ``<test_package>/config/`` by setting the corresponding value in :attr:`BrowserConfig.ENABLED_BROWSERS <webdriver_test_tools.config.browser.BrowserConfig.ENABLED_BROWSERS>` to ``True``. .. warning:: 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`` - ```` """ DRIVER_NAME = 'Safari' SHORT_NAME = DRIVER_NAME.lower() CAPABILITIES = DesiredCapabilities.SAFARI.copy()
[docs] def driver_init(self): return self.WebDriverConfig.get_safari_driver()