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

Method new_with_name

rust/src/edge.rs:93–109  ·  view source on GitHub ↗
(browser_name: String)

Source from the content-addressed store, hash-verified

91 }
92
93 pub fn new_with_name(browser_name: String) -> Result<Box<Self>, Error> {
94 let static_browser_name: &str = Box::leak(browser_name.into_boxed_str());
95 let driver_name = EDGEDRIVER_NAME;
96 let config = ManagerConfig::default(static_browser_name, driver_name);
97 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
98 Ok(Box::new(EdgeManager {
99 browser_name: static_browser_name,
100 driver_name,
101 http_client: OnceLock::new(),
102 config,
103 log: Logger::new(),
104 tx,
105 rx,
106 download_browser: false,
107 browser_url: None,
108 }))
109 }
110}
111
112impl SeleniumManager for EdgeManager {

Callers

nothing calls this directly

Calls 1

leakFunction · 0.85

Tested by

no test coverage detected