DomClick Method

Class

DomElement.

Action

Invokes a click using the DOM API.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

object.DomClick([button, pos])
Variable Description
button Optional: The mouse button to press. Values include:1=left, 2=right,3=center. INTEGER.
pos Optional: The coordinates (relative to the window) at which to click. POINT.

Notes

As an alternative to the DomClick method, you can invoke the Click function which uses low-level replay for DomElements and subclasses.

Example

Desktop.Find("//BrowserApplication").Find("//BrowserWindow").Find("//INPUT[@id='autoquote:zipcode']").DomClick(1,
{59, 11})