pub struct SimplePageObject { /* private fields */ }Expand description
A simple generic page object implementation
Implementations§
Source§impl SimplePageObject
impl SimplePageObject
Sourcepub fn add_locator(&mut self, name: impl Into<String>, selector: Selector)
pub fn add_locator(&mut self, name: impl Into<String>, selector: Selector)
Add a locator
Sourcepub fn locator_names(&self) -> Vec<&str>
pub fn locator_names(&self) -> Vec<&str>
Get all locator names
Trait Implementations§
Source§impl Clone for SimplePageObject
impl Clone for SimplePageObject
Source§fn clone(&self) -> SimplePageObject
fn clone(&self) -> SimplePageObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplePageObject
impl Debug for SimplePageObject
Source§impl PageObject for SimplePageObject
impl PageObject for SimplePageObject
Source§fn url_pattern(&self) -> &str
fn url_pattern(&self) -> &str
URL pattern that matches this page (e.g., “/login”, “/users/*”)
Source§fn load_timeout_ms(&self) -> u64
fn load_timeout_ms(&self) -> u64
Optional wait time for page load (in milliseconds)
Auto Trait Implementations§
impl Freeze for SimplePageObject
impl RefUnwindSafe for SimplePageObject
impl Send for SimplePageObject
impl Sync for SimplePageObject
impl Unpin for SimplePageObject
impl UnsafeUnpin for SimplePageObject
impl UnwindSafe for SimplePageObject
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