MCPcopy Create free account
hub / github.com/Infinity242/KickViewBot / setupWebBrowser

Method setupWebBrowser

KickViewBotHEADLESS.py:16–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.driver = None
15
16 def setupWebBrowser(self):
17 chrome_options = Options()
18 chrome_options.add_argument("--headless")
19 chrome_options.add_argument("--mute-audio")
20 chrome_options.add_argument("--no-sandbox")
21 chrome_options.add_argument("--disable-dev-shm-usage")
22 chrome_options.add_argument("--disable-gpu")
23 self.driver = uc.Chrome(options=chrome_options)
24
25 def getToken(self):
26 referer = self.driver.current_url

Callers 1

doTestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected