[][src]Struct lw_webdriver::elements::Element

pub struct Element { /* fields omitted */ }

Methods

impl Element[src]

pub fn new(id: String, session_id: Rc<String>, tab_id: Rc<String>) -> Self[src]

pub fn type_text(&mut self, text: &str) -> Result<(), WebdriverError>[src]

pub fn get_text(&self) -> Result<String, WebdriverError>[src]

pub fn get_attribute(
    &self,
    attribute_name: &str
) -> Result<String, WebdriverError>
[src]

pub fn get_tag_name(&self) -> Result<String, WebdriverError>[src]

pub fn get_css_value(
    &self,
    property_name: &str
) -> Result<String, WebdriverError>
[src]

pub fn get_property(
    &self,
    property_name: &str
) -> Result<String, WebdriverError>
[src]

pub fn get_rect(
    &self
) -> Result<((usize, usize), (usize, usize)), WebdriverError>
[src]

pub fn is_enabled(&self) -> Result<bool, WebdriverError>[src]

pub fn click(&mut self) -> Result<(), WebdriverError>[src]

pub fn as_json_object(&self) -> JsonValue[src]

pub fn scroll_into_view(&self) -> Result<(), WebdriverError>[src]

Trait Implementations

impl PartialEq<Element> for Element[src]

impl WebdriverObject for Element[src]

Auto Trait Implementations

impl !RefUnwindSafe for Element

impl !Send for Element

impl !Sync for Element

impl Unpin for Element

impl UnwindSafe for Element

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.