pub fn scroll_into_view(&self) -> WebDriverResult<()> {
        let mut args = ScriptArgs::new();
        args.push(&self)?;
        self.driver.execute_script_with_args(r#"arguments[0].scrollIntoView();"#, &args)?;
        Ok(())
    }
/// Scroll this element into view using JavaScript.
///
/// # Example:
/// ```rust
/// # use thirtyfour::sync::prelude::*;
/// #
/// # fn main() -> WebDriverResult<()> {
/// #     let caps = DesiredCapabilities::chrome();
/// #     let driver = WebDriver::new("http://localhost:4444/wd/hub", &caps)?;
/// #     driver.get("http://webappdemo")?;
/// let elem = driver.find_element(By::Id("button1"))?;
/// elem.scroll_into_view()?;
/// #     Ok(())
/// # }
/// ```
Scroll this element into view using JavaScript.
Scroll this element into view using JavaScript .
pub fn scroll_into_view(&self) -> WebDriverResult<()> {
        let mut args = ScriptArgs::new();
        args.push(&self)?;
        self.driver.execute_script_with_args(r#"arguments[0].scrollIntoView();"#, &args)?;
        Ok(())
    }
pub fn scroll_into_view ( & self ) -> WebDriverResult < ( ) > { let mut args = ScriptArgs :: new ( ) ; args . push ( & self ) ? ; self . driver . execute_script_with_args ( r#"arguments[0].scrollIntoView();"# , & args ) ? ; Ok ( ( ) ) }
Scroll this element into view using JavaScript.
Scroll this element into view using JavaScript .
&self
example:
None
use thirtyfour::sync::prelude::*;
None
fn main() -> webdriverresult<()> {
None
let caps = desiredcapabilities::chrome();
None
let driver = webdriver::new("http://localhost:4444/wd/hub", &caps)?;
None
driver.get("http://webappdemo")?;
let elem = driver.find_element(By::Id("button1"))?;
elem.scroll_into_view()?.
let elem = driver . find_element ( By :: Id ( " button1 " )) ? ; elem . scroll_into_view () ? .
ok(())
None
}
None