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

Method new

rust/src/firefox.rs:88–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87impl FirefoxManager {
88 pub fn new() -> Result<Box<Self>, Error> {
89 let browser_name = FIREFOX_NAME;
90 let driver_name = GECKODRIVER_NAME;
91 let config = ManagerConfig::default(browser_name, driver_name);
92 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
93 Ok(Box::new(FirefoxManager {
94 browser_name,
95 driver_name,
96 http_client: OnceLock::new(),
97 config,
98 log: Logger::new(),
99 tx,
100 rx,
101 download_browser: false,
102 }))
103 }
104
105 fn create_firefox_details_url(&self, endpoint: &str) -> String {
106 format!("{}{}", FIREFOX_DETAILS_URL, endpoint)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected