MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / new

Method new

rust/src/chrome.rs:70–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69impl ChromeManager {
70 pub fn new() -> Result<Box<Self>, Error> {
71 let browser_name = CHROME_NAME;
72 let driver_name = CHROMEDRIVER_NAME;
73 let config = ManagerConfig::default(browser_name, driver_name);
74 let default_timeout = config.timeout.to_owned();
75 let default_proxy = &config.proxy;
76 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
77 Ok(Box::new(ChromeManager {
78 browser_name,
79 driver_name,
80 http_client: create_http_client(default_timeout, default_proxy)?,
81 config,
82 log: Logger::new(),
83 tx,
84 rx,
85 download_browser: false,
86 driver_url: None,
87 browser_url: None,
88 }))
89 }
90
91 fn create_latest_release_url(&self) -> String {
92 format!(

Callers

nothing calls this directly

Calls 1

create_http_clientFunction · 0.85

Tested by

no test coverage detected