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

Method new

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

create_http_clientFunction · 0.85

Tested by

no test coverage detected