[−][src]Struct lw_webdriver::elements::Element
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]
&self,
attribute_name: &str
) -> Result<String, WebdriverError>
pub fn get_tag_name(&self) -> Result<String, WebdriverError>
[src]
pub fn get_css_value(
&self,
property_name: &str
) -> Result<String, WebdriverError>
[src]
&self,
property_name: &str
) -> Result<String, WebdriverError>
pub fn get_property(
&self,
property_name: &str
) -> Result<String, WebdriverError>
[src]
&self,
property_name: &str
) -> Result<String, WebdriverError>
pub fn get_rect(
&self
) -> Result<((usize, usize), (usize, usize)), WebdriverError>
[src]
&self
) -> Result<((usize, usize), (usize, usize)), WebdriverError>
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
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]
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>,