wpf_click_element
Click a UI element in a WPF app via UI Automation without moving the mouse, or perform a physical mouse click at its on-screen position. Supports single, double, and right-click actions.
Instructions
Click a UI element. By default invokes the control's action via UI Automation (works for buttons, menu items, checkboxes, radio buttons, tabs, list items, expanders) without moving the mouse or focusing the window. Set physical=true to perform a real OS mouse click at the element's on-screen position (works on any visible element but moves the cursor and brings the window forward; auto-scrolls the element into view first). click_type: 'single' (default), 'double' (open items), 'right' (context menus) — double and right are always physical. After opening a context menu or dropdown, use wpf_capture_screenshot with mode='screen' to see it. STATE-CHANGING.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| physical | No | ||
| click_type | No | ||
| element_handle | Yes |