pub fn type_text(&self, input: &str) -> reqwest::Result<()> {
        let url = construct_url(vec![
            "session/",
            &(self.session_id.clone() + "/"),
            "element/",
            &(self.element_id.clone() + "/"),
            "value",
        ]);

        println!("{:?}", url);

        let data = ValueRequest::new(input);
        self.client
            .post(url)
            .json(&data)
            .send()?
            .error_for_status()?;

        Ok(())
    }
/// Tries to type into a content editable element
Tries to type into a content editable element
Tries to type into a content editable element
pub fn type_text(&self, input: &str) -> reqwest::Result<()> {
        let url = construct_url(vec![
            "session/",
            &(self.session_id.clone() + "/"),
            "element/",
            &(self.element_id.clone() + "/"),
            "value",
        ]);
        println!("{:?}", url);
        let data = ValueRequest::new(input);
        self.client
            .post(url)
            .json(&data)
            .send()?
            .error_for_status()?;
        Ok(())
    }
pub fn type_text ( & self , input : & str ) -> reqwest :: Result < ( ) > { let url = construct_url ( vec ! [ " " ( self session_id clone ( ) " " ) " " ( self element_id clone ( ) " " ) " " ] ) ; println ! ( " " url ) ; let data = ValueRequest :: new ( input ) ; self . client . post ( url ) . json ( & data ) . send ( ) ? . error_for_status ( ) ? ; Ok ( ( ) ) }
Tries to type into a content editable element
Tries to type into a content editable element
&self
input
&str
&self
input
&str