pub struct SoftLocatorAssertions<'a> { /* private fields */ }Expand description
Soft assertions for locators.
These assertions collect failures instead of failing immediately.
Implementations§
Source§impl SoftLocatorAssertions<'_>
impl SoftLocatorAssertions<'_>
Sourcepub async fn to_be_visible(&self)
pub async fn to_be_visible(&self)
Assert element is visible (soft).
Assert element is hidden (soft).
Sourcepub async fn to_be_enabled(&self)
pub async fn to_be_enabled(&self)
Assert element is enabled (soft).
Sourcepub async fn to_be_disabled(&self)
pub async fn to_be_disabled(&self)
Assert element is disabled (soft).
Sourcepub async fn to_be_checked(&self)
pub async fn to_be_checked(&self)
Assert element is checked (soft).
Sourcepub async fn to_have_text(&self, expected: impl AsRef<str>)
pub async fn to_have_text(&self, expected: impl AsRef<str>)
Assert element has text (soft).
Sourcepub async fn to_contain_text(&self, expected: impl AsRef<str>)
pub async fn to_contain_text(&self, expected: impl AsRef<str>)
Assert element contains text (soft).
Sourcepub async fn to_have_value(&self, expected: impl AsRef<str>)
pub async fn to_have_value(&self, expected: impl AsRef<str>)
Assert element has value (soft).
Sourcepub async fn to_have_attribute(
&self,
name: impl AsRef<str>,
value: impl AsRef<str>,
)
pub async fn to_have_attribute( &self, name: impl AsRef<str>, value: impl AsRef<str>, )
Assert element has attribute (soft).
Sourcepub async fn to_have_class(&self, class_name: impl AsRef<str>)
pub async fn to_have_class(&self, class_name: impl AsRef<str>)
Assert element has class (soft).
Sourcepub async fn to_have_id(&self, expected: impl AsRef<str>)
pub async fn to_have_id(&self, expected: impl AsRef<str>)
Assert element has id (soft).
Sourcepub async fn to_have_count(&self, expected: usize)
pub async fn to_have_count(&self, expected: usize)
Assert element count (soft).
Sourcepub async fn to_have_count_greater_than(&self, n: usize)
pub async fn to_have_count_greater_than(&self, n: usize)
Assert element count is greater than a value (soft).
Sourcepub async fn to_have_count_less_than(&self, n: usize)
pub async fn to_have_count_less_than(&self, n: usize)
Assert element count is less than a value (soft).
Sourcepub async fn to_have_count_at_least(&self, n: usize)
pub async fn to_have_count_at_least(&self, n: usize)
Assert element count is at least a value (soft).
Sourcepub async fn to_have_count_at_most(&self, n: usize)
pub async fn to_have_count_at_most(&self, n: usize)
Assert element count is at most a value (soft).
Sourcepub async fn to_match_aria_snapshot(&self, expected: &AriaSnapshot)
pub async fn to_match_aria_snapshot(&self, expected: &AriaSnapshot)
Assert element’s ARIA snapshot matches expected structure (soft).
Sourcepub async fn to_match_aria_snapshot_yaml(&self, expected_yaml: &str)
pub async fn to_match_aria_snapshot_yaml(&self, expected_yaml: &str)
Assert element’s ARIA snapshot matches expected YAML string (soft).
Sourcepub async fn to_have_texts(&self, expected: &[&str])
pub async fn to_have_texts(&self, expected: &[&str])
Assert elements have texts (soft).
Sourcepub async fn to_contain_texts(&self, expected: &[&str])
pub async fn to_contain_texts(&self, expected: &[&str])
Assert elements contain texts (soft).
Sourcepub async fn to_have_classes(&self, expected_classes: &[&str])
pub async fn to_have_classes(&self, expected_classes: &[&str])
Assert element has all specified classes (soft).
Sourcepub async fn to_have_values(&self, expected: &[&str])
pub async fn to_have_values(&self, expected: &[&str])
Assert multi-select element has specified values (soft).