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 <https://webkit.org/blog/6900/webdriver-support-in-safari-10/>`__ .. note:: 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 :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`` - ``selenium.webdriver.support.select`` """ DRIVER_NAME = 'Safari' SHORT_NAME = DRIVER_NAME.lower() CAPABILITIES = DesiredCapabilities.SAFARI.copy()
[docs] def driver_init(self): return self.WebDriverConfig.get_safari_driver()