MCPcopy
hub / github.com/django/django / create_webdriver

Method create_webdriver

django/test/selenium.py:102–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 return options
101
102 def create_webdriver(self):
103 options = self.create_options()
104 if self.selenium_hub:
105 from selenium import webdriver
106
107 for key, value in self.get_capability(self.browser).items():
108 options.set_capability(key, value)
109
110 return webdriver.Remote(command_executor=self.selenium_hub, options=options)
111 return self.import_webdriver(self.browser)(options=options)
112
113
114class ChangeWindowSize:

Callers 1

setUpClassMethod · 0.80

Calls 4

create_optionsMethod · 0.95
get_capabilityMethod · 0.95
import_webdriverMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected