webdriver_test_tools.testcase.chrome module¶
-
class
webdriver_test_tools.testcase.chrome.ChromeTestCase(methodName='runTest')[source]¶ Bases:
webdriver_test_tools.testcase.webdriver.WebDriverTestCaseImplementation of
WebDriverTestCaseusing Chrome webdriverThis driver supports headless browsing:
-
DRIVER_NAME= 'Chrome'¶
-
SHORT_NAME= 'chrome'¶
-
CAPABILITIES= {'browserName': 'chrome', 'platform': 'ANY', 'version': ''}¶
-
-
class
webdriver_test_tools.testcase.chrome.ChromeMobileTestCase(methodName='runTest')[source]¶ Bases:
webdriver_test_tools.testcase.webdriver.WebDriverMobileTestCaseImplementation of
WebDriverTestCaseusing Chrome webdriver. Emulates mobile device layout.-
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 callingsuper().bs_driver_init()- Returns
webdriver.Remote object with the command_executor and desired_capabilities parameters set to
self.COMMAND_EXECUTORandself.CAPABILITIESrespectively.
-