class Playwright::Accessibility::SnapshotOptions
- Playwright::Accessibility::SnapshotOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/accessibility.crConstructors
- .new(pull : JSON::PullParser)
- .new(interesting_only : Bool | Nil = nil, root : Playwright::ElementHandle | Nil = nil)
Instance Method Summary
-
#interesting_only : Bool | Nil
Prune uninteresting nodes from the tree.
-
#interesting_only=(interesting_only : Bool | Nil)
Prune uninteresting nodes from the tree.
-
#root : ElementHandle | Nil
The root DOM element for the snapshot.
-
#root=(root : ElementHandle | Nil)
The root DOM element for the snapshot.
Constructor Detail
Instance Method Detail
def interesting_only=(interesting_only : Bool | Nil)
#
Prune uninteresting nodes from the tree. Defaults to true
.
def root=(root : ElementHandle | Nil)
#
The root DOM element for the snapshot. Defaults to the whole page.