pub fn unwrap_element_sync(
    conn: Arc<RemoteConnectionSync>,
    session_id: SessionId,
    value: &serde_json::Value,
) -> WebDriverResult<WebElement> {
    let elem_id: ElementRef = serde_json::from_value(value.clone())?;
    Ok(WebElement::new(
        conn,
        session_id,
        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 unwrap_element_sync(
    conn: Arc<RemoteConnectionSync>,
    session_id: SessionId,
    value: &serde_json::Value,
) -> WebDriverResult<WebElement> {
    let elem_id: ElementRef = serde_json::from_value(value.clone())?;
    Ok(WebElement::new(
        conn,
        session_id,
        ElementId::from(elem_id.id),
    ))
}
pub fn unwrap_element_sync ( conn : Arc < RemoteConnectionSync > , session_id : SessionId , value : & serde_json :: Value , ) -> WebDriverResult < WebElement > { let elem_id : ElementRef = serde_json :: from_value ( value . clone ( ) ) ? ; Ok ( WebElement :: new ( conn , session_id , ElementId :: from ( elem_id . id ) , ) ) }
Unwrap the raw JSON into a WebElement struct.
Unwrap the raw JSON into a WebElement struct .
conn
Arc<RemoteConnectionSync>
session_id
SessionId
value
&serde_json::Value
conn
Arc<RemoteConnectionSync>
session_id
SessionId
value
&serde_json::Value