webdriver_test_tools.testcase.chrome module

class webdriver_test_tools.testcase.chrome.ChromeTestCase(methodName='runTest')[source]

Bases: webdriver_test_tools.testcase.webdriver.WebDriverTestCase

Implementation of WebDriverTestCase using Chrome webdriver

Driver download

This driver supports headless browsing:

DRIVER_NAME = 'Chrome'
SHORT_NAME = 'chrome'
CAPABILITIES = {'browserName': 'chrome', 'platform': 'ANY', 'version': ''}
driver_init()[source]

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

class webdriver_test_tools.testcase.chrome.ChromeMobileTestCase(methodName='runTest')[source]

Bases: webdriver_test_tools.testcase.webdriver.WebDriverMobileTestCase

Implementation of WebDriverTestCase using Chrome webdriver. Emulates mobile device layout.

Driver download

Mobile emulation info

DRIVER_NAME = 'Chrome Mobile [Emulated]'
SHORT_NAME = 'chrome-mobile'
CAPABILITIES = {'browserName': 'chrome', 'platform': 'ANY', 'version': ''}
bs_driver_init()[source]

Configures CAPABILITIES['chromeOptions'] for mobile emulation before calling super().bs_driver_init()

Returns

webdriver.Remote object with the command_executor and desired_capabilities parameters set to self.COMMAND_EXECUTOR and self.CAPABILITIES respectively.

driver_init()[source]

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