WebHitTestResult#

Added in version 2.8.

class WebHitTestResult(**properties: Any)#

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.

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_context() int#

Gets the the context flags for the hit test result.

get_image_uri() str#

Obtains the URI associated with the image element at the hit test position.

get_js_node(world: ScriptWorld | None = None) Value | None#

Get the Value for the DOM node in world at the coordinates of the Hit Test.

Added in version 2.40.

Parameters:

world – a ScriptWorld, or None to use the default

Obtains the label associated with the link element at the hit test position.

Obtains the title associated with the link element at the hit test position.

Obtains the URI associated with the link element at the hit test position.

get_media_uri() str#

Obtains the URI associated with the media element at the hit test position.