/// Return only the first WebElement that matches any selector (including all of
/// the filters for that selector).
///
/// Returns Err(WebDriverError::NoSuchElement) if no elements match.
Return only the first WebElement that matches any selector (including all of
the filters for that selector).


Return only the first WebElement that matches any selector ( including all of the filters for that selector ) .
pub async fn first(&self) -> WebDriverResult<WebElement<'a>> {
        let mut elements = self.run_poller(false).await?;
        if elements.is_empty() {
            Err(no_such_element(&self.selectors, &self.description))
        } else {
            Ok(elements.remove(0))
        }
    }
pub async fn first ( & self ) -> WebDriverResult < WebElement < ' a > > { let mut elements = self . run_poller ( false ) . await ? ; if elements . is_empty ( ) { Err ( no_such_element ( & self . selectors , & self . description ) ) } else { Ok ( elements . remove ( 0 ) ) } }
Return only the first WebElement that matches any selector (including all of
the filters for that selector).
Return only the first WebElement that matches any selector ( including all of the filters for that selector ) .
&self