pub fn convert_element_sync<'a>(
    driver: WebDriverSession<'a>,
    value: &serde_json::Value,
) -> WebDriverResult<WebElement<'a>> {
    let elem_id: ElementRef = serde_json::from_value(value.clone())?;
    Ok(WebElement::new(driver, ElementId::from(elem_id.id)))
}
/// Unwrap the raw JSON into a WebElement struct.
Unwrap the raw JSON into a WebElement struct.
Unwrap the raw JSON into a WebElement struct .
pub fn convert_element_sync<'a>(
    driver: WebDriverSession<'a>,
    value: &serde_json::Value,
) -> WebDriverResult<WebElement<'a>> {
    let elem_id: ElementRef = serde_json::from_value(value.clone())?;
    Ok(WebElement::new(driver, ElementId::from(elem_id.id)))
}
pub fn convert_element_sync < ' a > ( driver : WebDriverSession < ' a > , value : & serde_json :: Value , ) -> WebDriverResult < WebElement < ' a > > { let elem_id : ElementRef = serde_json :: from_value ( value . clone ( ) ) ? ; Ok ( WebElement :: new ( driver , ElementId :: from ( elem_id . id ) ) ) }
Unwrap the raw JSON into a WebElement struct.
Unwrap the raw JSON into a WebElement struct .
driver
WebDriverSession<'a>
value
&serde_json::Value