pub struct LocatorAssertions { /* private fields */ }Implementations§
Source§impl LocatorAssertions
impl LocatorAssertions
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Builder: override the assertion timeout.
Sourcepub fn set_timeout(&mut self, timeout: Duration) -> &mut Self
pub fn set_timeout(&mut self, timeout: Duration) -> &mut Self
Override the assertion timeout in place.
pub async fn to_be_visible(&self) -> Result<()>
pub async fn to_be_enabled(&self) -> Result<()>
pub async fn to_be_disabled(&self) -> Result<()>
pub async fn to_be_editable(&self) -> Result<()>
pub async fn to_be_checked(&self) -> Result<()>
pub async fn to_be_unchecked(&self) -> Result<()>
Sourcepub async fn to_have_text(&self, expected: &str) -> Result<()>
pub async fn to_have_text(&self, expected: &str) -> Result<()>
Assert the element’s trimmed textContent equals expected.
Sourcepub async fn to_contain_text(&self, expected: &str) -> Result<()>
pub async fn to_contain_text(&self, expected: &str) -> Result<()>
Assert the element’s trimmed textContent contains expected.
Sourcepub async fn to_have_inner_text(&self, expected: &str) -> Result<()>
pub async fn to_have_inner_text(&self, expected: &str) -> Result<()>
Assert the element’s innerText equals expected.
Sourcepub async fn to_have_count(&self, expected: usize) -> Result<()>
pub async fn to_have_count(&self, expected: usize) -> Result<()>
Assert the number of matching elements equals expected.
Sourcepub async fn to_have_attribute(&self, name: &str, value: &str) -> Result<()>
pub async fn to_have_attribute(&self, name: &str, value: &str) -> Result<()>
Assert the element has attribute name equal to value.
Sourcepub async fn to_have_value(&self, expected: &str) -> Result<()>
pub async fn to_have_value(&self, expected: &str) -> Result<()>
Assert the element’s input value equals expected.
Sourcepub async fn to_be_empty(&self) -> Result<()>
pub async fn to_be_empty(&self) -> Result<()>
Assert the element is empty: an empty input value, or zero matching elements.
Trait Implementations§
Source§impl Clone for LocatorAssertions
impl Clone for LocatorAssertions
Source§fn clone(&self) -> LocatorAssertions
fn clone(&self) -> LocatorAssertions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LocatorAssertions
impl !UnwindSafe for LocatorAssertions
impl Freeze for LocatorAssertions
impl Send for LocatorAssertions
impl Sync for LocatorAssertions
impl Unpin for LocatorAssertions
impl UnsafeUnpin for LocatorAssertions
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