pub struct Element { /* private fields */ }
Implementations§
Source§impl Element
impl Element
pub fn new(id: String, session_id: Rc<String>, tab_id: Rc<String>) -> Self
pub fn type_text(&mut self, text: &str) -> Result<(), WebdriverError>
pub fn get_text(&self) -> Result<String, WebdriverError>
pub fn get_attribute( &self, attribute_name: &str, ) -> Result<String, WebdriverError>
pub fn get_tag_name(&self) -> Result<String, WebdriverError>
pub fn get_css_value( &self, property_name: &str, ) -> Result<String, WebdriverError>
pub fn get_property( &self, property_name: &str, ) -> Result<String, WebdriverError>
pub fn get_rect( &self, ) -> Result<((usize, usize), (usize, usize)), WebdriverError>
pub fn is_enabled(&self) -> Result<bool, WebdriverError>
pub fn click(&mut self) -> Result<(), WebdriverError>
pub fn as_json_object(&self) -> JsonValue
pub fn scroll_into_view(&self) -> Result<(), WebdriverError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more