WebHitTestResult#
Added in version 2.8.
Superclasses: Object
Result of a Hit Test (Web Process Extensions).
WebKitWebHitTestResult extends HitTestResult
to provide information
about the WebKitDOMNode
in the coordinates of the Hit Test.
Methods#
- class WebHitTestResult
- context_is_editable() bool #
Check whether there is an editable element at the hit test position.
Checks whether
EDITABLE
flag is present in the context flags.
- context_is_image() bool #
Check whether there is an image element at the hit test position.
Checks whether
IMAGE
flag is present in the context flags.
- context_is_link() bool #
Check whether there is a link element at the hit test position.
Checks whether
LINK
flag is present in the context flags.
- context_is_media() bool #
Check whether there is a media element at the hit test position.
Checks whether
MEDIA
flag is present in the context flags.
- context_is_scrollbar() bool #
Check whether there is a scrollbar at the hit test position.
Checks whether
SCROLLBAR
flag is present in the context flags.
- context_is_selection() bool #
Check whether there is a selected element at the hit test position.
Checks whether
SELECTION
flag is present in the context flags.
- get_js_node(world: ScriptWorld | None = None) Value | None #
Get the
Value
for the DOM node inworld
at the coordinates of the Hit Test.Added in version 2.40.
- Parameters:
world – a
ScriptWorld
, orNone
to use the default