pub fn convert_elements_sync<'a>(
    driver: WebDriverSession<'a>,
    value: &serde_json::Value,
) -> WebDriverResult<Vec<WebElement<'a>>> {
    let values: Vec<ElementRef> = serde_json::from_value(value.clone())?;
    Ok(values.into_iter().map(|x| WebElement::new(driver.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.
Unwrap the raw JSON into a Vec of WebElement structs .
pub fn convert_elements_sync<'a>(
    driver: WebDriverSession<'a>,
    value: &serde_json::Value,
) -> WebDriverResult<Vec<WebElement<'a>>> {
    let values: Vec<ElementRef> = serde_json::from_value(value.clone())?;
    Ok(values.into_iter().map(|x| WebElement::new(driver.clone(), ElementId::from(x.id))).collect())
}
pub fn convert_elements_sync < ' a > ( driver : WebDriverSession < ' a > , value : & serde_json :: Value , ) -> WebDriverResult < Vec < WebElement < ' a > > > { let values : Vec < ElementRef > = serde_json :: from_value ( value . clone ( ) ) ? ; Ok ( values . into_iter ( ) . map ( | x | WebElement :: new ( driver . 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 .
driver
WebDriverSession<'a>
value
&serde_json::Value