pub struct PageObjectBuilder { /* private fields */ }Expand description
Builder for creating page objects with locators
Implementations§
Source§impl PageObjectBuilder
impl PageObjectBuilder
Sourcepub fn with_url_pattern(self, pattern: impl Into<String>) -> Self
pub fn with_url_pattern(self, pattern: impl Into<String>) -> Self
Set the URL pattern
Sourcepub fn with_locator(self, name: impl Into<String>, selector: Selector) -> Self
pub fn with_locator(self, name: impl Into<String>, selector: Selector) -> Self
Add a locator with a name
Sourcepub const fn with_load_timeout(self, timeout_ms: u64) -> Self
pub const fn with_load_timeout(self, timeout_ms: u64) -> Self
Set the load timeout
Sourcepub fn build(self) -> SimplePageObject
pub fn build(self) -> SimplePageObject
Build a simple page object
Trait Implementations§
Source§impl Clone for PageObjectBuilder
impl Clone for PageObjectBuilder
Source§fn clone(&self) -> PageObjectBuilder
fn clone(&self) -> PageObjectBuilder
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 PageObjectBuilder
impl Debug for PageObjectBuilder
Auto Trait Implementations§
impl Freeze for PageObjectBuilder
impl RefUnwindSafe for PageObjectBuilder
impl Send for PageObjectBuilder
impl Sync for PageObjectBuilder
impl Unpin for PageObjectBuilder
impl UnsafeUnpin for PageObjectBuilder
impl UnwindSafe for PageObjectBuilder
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