/// Helper function to return the NoSuchElement error struct.
Helper function to return the NoSuchElement error struct.
Helper function to return the NoSuchElement error struct .
fn no_such_element(selectors: &[ElementSelector], description: &str) -> WebDriverError {
    let element_description = if description.is_empty() {
        String::from("Element(s)")
    } else {
        format!("'{}' element(s)", description)
    };
    WebDriverError::NoSuchElement(WebDriverErrorInfo::new(&format!(
        "{} not found using selectors: {}",
        element_description,
        &get_selector_summary(selectors)
    )))
}
fn no_such_element ( selectors : & [ ElementSelector ] , description : & str ) -> WebDriverError { let element_description = if description . is_empty ( ) { String :: from ( " " ) } else { format ! ( " " description ) } ; WebDriverError :: NoSuchElement ( WebDriverErrorInfo :: new ( & format ! ( " " element_description get_selector_summary ( selectors ) ) ) ) }
Helper function to return the NoSuchElement error struct.
Helper function to return the NoSuchElement error struct .
selectors
&[ElementSelector]
description
&str