Struct selenium_rs::element::Element [−][src]
pub struct Element<'a> { /* fields omitted */ }Element provides an interface from which to inspect and interact with the requested elements on the page. The general flow involves navigating to your webpage in question, and then requesting a specific element through the query API, and then using the returned element to inspect the element on the page
Methods
impl<'a> Element<'a>[src]
impl<'a> Element<'a>impl<'a> Element<'a>[src]
impl<'a> Element<'a>pub fn is_selected(&self) -> Result<bool>[src]
pub fn is_selected(&self) -> Result<bool>pub fn get_attribute(&self, attribute: &str) -> Result<String>[src]
pub fn get_attribute(&self, attribute: &str) -> Result<String>gets an element attribute for the given element
pub fn get_property(&self, property: &str) -> Result<String>[src]
pub fn get_property(&self, property: &str) -> Result<String>retrieves the property value for the given element, if it exists
pub fn get_css_value(&self, css_property: &str) -> Result<String>[src]
pub fn get_css_value(&self, css_property: &str) -> Result<String>Gets a css property for the given element, if it exists
pub fn get_text(&self) -> Result<String>[src]
pub fn get_text(&self) -> Result<String>Gets the text for a given element, if it exists or makes sense
impl<'a> Element<'a>[src]
impl<'a> Element<'a>pub fn click(&self) -> Result<()>[src]
pub fn click(&self) -> Result<()>pub fn clear(&self) -> Result<()>[src]
pub fn clear(&self) -> Result<()>Clears a content editable element's text value, or returns an error
pub fn type_text(&self, input: &str) -> Result<()>[src]
pub fn type_text(&self, input: &str) -> Result<()>Tries to type into a content editable element