pub struct Dom<T: HttpTransport> { /* private fields */ }Expand description
Structure for manipulating HTML documents
Implementations§
Source§impl<T: HttpTransport> Dom<T>
impl<T: HttpTransport> Dom<T>
Get a button
Sourcepub fn inner_html(&self, locator: &str) -> Result<String>
pub fn inner_html(&self, locator: &str) -> Result<String>
Get the inner HTML of an element
Sourcepub fn contains_text(&self, text: &str) -> bool
pub fn contains_text(&self, text: &str) -> bool
Check if an element containing the specified text exists
Sourcepub fn select_element(&self, locator: &str) -> Result<SelectElement>
pub fn select_element(&self, locator: &str) -> Result<SelectElement>
Get a select element
Auto Trait Implementations§
impl<T> Freeze for Dom<T>
impl<T> RefUnwindSafe for Dom<T>where
T: RefUnwindSafe,
impl<T> Send for Dom<T>
impl<T> Sync for Dom<T>
impl<T> Unpin for Dom<T>
impl<T> UnwindSafe for Dom<T>where
T: RefUnwindSafe,
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