MCPcopy
hub / github.com/django/django / get_capability

Method get_capability

django/test/selenium.py:79–86  ·  view source on GitHub ↗
(cls, browser)

Source from the content-addressed store, hash-verified

77
78 @classmethod
79 def get_capability(cls, browser):
80 from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
81
82 caps = getattr(DesiredCapabilities, browser.upper())
83 if browser == "chrome":
84 caps["goog:loggingPrefs"] = {"browser": "ALL"}
85
86 return caps
87
88 def create_options(self):
89 options = self.import_options(self.browser)()

Callers 1

create_webdriverMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected