/// Search for an element on the current page using the specified selector.
///
/// # Example:
/// ```ignore
/// use thirtyfour::By;
///
/// let elem = driver.find_element(By::Id("theElementId"))?;
/// ```
Search for an element on the current page using the specified selector.
Search for an element on the current page using the specified selector .
pub fn find_element(&self, by: By) -> WebDriverResult<WebElement> {
        let v = self
            .conn
            .execute(Command::FindElement(&self.session_id, by))?;
        unwrap_element_sync(self.conn.clone(), self.session_id.clone(), &v["value"])
    }
pub fn find_element ( & self , by : By ) -> WebDriverResult < WebElement > { let v = self . conn . execute ( Command :: FindElement ( & self . session_id , by ) ) ? ; unwrap_element_sync ( self . conn . clone ( ) , self . session_id . clone ( ) , & v [ " " ] ) }
Search for an element on the current page using the specified selector.
Search for an element on the current page using the specified selector .
&self
by
By
example:
```ignore
use thirtyfour::By.

let elem = driver.find_element(By::Id("theElementId"))?;
```
` ` ` ignore use thirtyfour :: By . let elem = driver . find_element ( By :: Id ( " theElementId " )) ? ; ` ` `