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

Method get_first_in_vector

rust/src/lib.rs:754–760  ·  view source on GitHub ↗
(&self, vector: Vec<&str>)

Source from the content-addressed store, hash-verified

752 }
753
754 fn get_first_in_vector(&self, vector: Vec<&str>) -> Option<String> {
755 if vector.is_empty() {
756 return None;
757 }
758 let first = vector.first().unwrap().to_string();
759 if first.is_empty() { None } else { Some(first) }
760 }
761
762 fn is_windows_admin(&self) -> bool {
763 let os = self.get_os();

Callers

nothing calls this directly

Implementers 8

edge.rsrust/src/edge.rs
iexplorer.rsrust/src/iexplorer.rs
safaritp.rsrust/src/safaritp.rs
electron.rsrust/src/electron.rs
chrome.rsrust/src/chrome.rs
firefox.rsrust/src/firefox.rs
grid.rsrust/src/grid.rs
safari.rsrust/src/safari.rs

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected