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

Method new

rust/src/safari.rs:49–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48impl SafariManager {
49 pub fn new() -> Result<Box<Self>, Error> {
50 let browser_name = SAFARI_NAME;
51 let driver_name = SAFARIDRIVER_NAME;
52 let config = ManagerConfig::default(browser_name, driver_name);
53 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
54 Ok(Box::new(SafariManager {
55 browser_name,
56 driver_name,
57 http_client: OnceLock::new(),
58 config,
59 log: Logger::new(),
60 tx,
61 rx,
62 download_browser: false,
63 }))
64 }
65}
66
67impl SeleniumManager for SafariManager {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected