ie_click
Clicks an element after automatically waiting for it, using id, CSS, XPath, name, link text, tag, or class; supports single, double, and right clicks in driver or async mode.
Instructions
Click an element (auto-waits). 'by' is id/css/xpath/name/link_text/tag/class. action: click (default) | double | right. mode: driver (a WebDriver click; the default unless IE_CLICK_MODE=async) | async. An async click is queued on the page's own timer, so the call does not wait for the click's handlers (only the usual 'wait' pause follows) and cannot block even if the click opens a dialog that would block a driver click. It is script-initiated: there is no mousedown/mouseup/focus, handlers that test for a user gesture can behave differently, and the pop-up blocker may block a window.open it triggers. double and right always use the driver. Over COM (target hwnd:/tab:) a click is always queued on the page's timer and synthetic (script events, not mouse input).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"by": "<by>",
"value": "<value>"
},
"name": "ie_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| mode | No | driver | async (default: IE_CLICK_MODE, normally driver) | |
| wait | No | seconds to pause after the click (default 2) | |
| frame | No | ||
| value | Yes | ||
| action | No | click | double | right | |
| target | No | Where to act: omit it for the session's IE driver; hwnd:<n> acts over COM on the window <n> (a modal dialog's hwnd from a NOTICE or ie_windows), tab:<n> on an attached tab. Over COM, DOM access is script, input is synthetic (script events and a timer click, not mouse or keyboard input; keys are posted window messages) and only id, name, tag, class, link_text and (documentMode 8+) css locators work. | |
| timeout | No | seconds to wait for the element (default 10) |