/// Unwrap the raw JSON into a Vec of WebElement structs.
Unwrap the raw JSON into a Vec of WebElement structs.
Unwrap the raw JSON into a Vec of WebElement structs .
pub fn unwrap_elements_sync(
    conn: &Arc<RemoteConnectionSync>,
    session_id: &SessionId,
    value: &serde_json::Value,
) -> WebDriverResult<Vec<WebElement>> {
    let values: Vec<ElementRef> = serde_json::from_value(value.clone())?;
    Ok(values
        .into_iter()
        .map(|x| WebElement::new(conn.clone(), session_id.clone(), ElementId::from(x.id)))
        .collect())
}
pub fn unwrap_elements_sync ( conn : & Arc < RemoteConnectionSync > , session_id : & SessionId , value : & serde_json :: Value , ) -> WebDriverResult < Vec < WebElement > > { let values : Vec < ElementRef > = serde_json :: from_value ( value . clone ( ) ) ? ; Ok ( values . into_iter ( ) . map ( | x | WebElement :: new ( conn . clone ( ) , session_id . clone ( ) , ElementId :: from ( x . id ) ) ) . collect ( ) ) }
Unwrap the raw JSON into a Vec of WebElement structs.
Unwrap the raw JSON into a Vec of WebElement structs .
conn
&Arc<RemoteConnectionSync>
session_id
&SessionId
value
&serde_json::Value