#[non_exhaustive]pub struct AccessibilitySnapshotOptions {
pub interesting_only: Option<bool>,
pub root: Option<ElementHandle>,
}Expand description
Options for Accessibility::snapshot.
See: https://playwright.dev/docs/api/class-accessibility#accessibility-snapshot
Both fields are accepted for parity with the other bindings and are
currently ignored: the driver this crate bundles has no accessibility
snapshot command, so Accessibility::snapshot is emulated with a
whole-page ARIA snapshot. Use Locator::aria_snapshot to scope a
snapshot to an element.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interesting_only: Option<bool>Whether to prune uninteresting nodes from the tree.
Defaults to true.
root: Option<ElementHandle>The root element for the snapshot.
When not set, the snapshot is taken from the entire page.
Implementations§
Source§impl AccessibilitySnapshotOptions
impl AccessibilitySnapshotOptions
Sourcepub fn interesting_only(self, interesting_only: bool) -> Self
pub fn interesting_only(self, interesting_only: bool) -> Self
Whether to prune uninteresting nodes from the tree. Defaults to true.
Currently ignored; see the struct docs.
Sourcepub fn root(self, root: ElementHandle) -> Self
pub fn root(self, root: ElementHandle) -> Self
The root element for the snapshot. Defaults to the entire page. Currently ignored; see the struct docs.