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

Method new

rust/src/electron.rs:95–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94impl ElectronManager {
95 pub fn new() -> Result<Box<Self>, Error> {
96 let browser_name = ELECTRON_NAME;
97 let driver_name = CHROMEDRIVER_NAME;
98 let config = ManagerConfig::default(browser_name, driver_name);
99 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
100 Ok(Box::new(ElectronManager {
101 browser_name,
102 driver_name,
103 http_client: OnceLock::new(),
104 config,
105 log: Logger::new(),
106 tx,
107 rx,
108 download_browser: false,
109 driver_url: None,
110 }))
111 }
112}
113
114impl SeleniumManager for ElectronManager {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected