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

Method new

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

Source from the content-addressed store, hash-verified

85
86impl ChromeManager {
87 pub fn new() -> Result<Box<Self>, Error> {
88 let browser_name = CHROME_NAME;
89 let driver_name = CHROMEDRIVER_NAME;
90 let config = ManagerConfig::default(browser_name, driver_name);
91 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
92 Ok(Box::new(ChromeManager {
93 browser_name,
94 driver_name,
95 http_client: OnceLock::new(),
96 config,
97 log: Logger::new(),
98 tx,
99 rx,
100 download_browser: false,
101 driver_url: None,
102 browser_url: None,
103 }))
104 }
105
106 fn create_latest_release_url(&self) -> String {
107 format!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected