[−][src]Struct selenium_rs::element::Element
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>
[src]
pub fn is_selected(&self) -> Result<bool>
[src]
pub fn get_attribute(&self, attribute: &str) -> Result<String>
[src]
gets an element attribute for the given element
pub fn get_property(&self, property: &str) -> Result<String>
[src]
retrieves the property value for the given element, if it exists
pub fn get_css_value(&self, css_property: &str) -> Result<String>
[src]
Gets a css property for the given element, if it exists
pub fn get_text(&self) -> Result<String>
[src]
Gets the text for a given element, if it exists or makes sense
impl<'a> Element<'a>
[src]
pub fn click(&self) -> Result<()>
[src]
pub fn clear(&self) -> Result<()>
[src]
Clears a content editable element's text value, or returns an error
pub fn type_text(&self, input: &str) -> Result<()>
[src]
Tries to type into a content editable element
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Element<'a>
impl<'a> Send for Element<'a>
impl<'a> Sync for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> !UnwindSafe for Element<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,