Wait for condition
wait_forWait for a condition like element visibility or text match before proceeding, replacing arbitrary sleep delays in legacy IE automation.
Instructions
Wait until a condition holds. present/visible/enabled/text require a selector; text/url/title require text, which is matched as a substring. Use this instead of sleeping after an action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Expected substring for text/url/title conditions. | |
| type | Yes | Condition to wait for. | |
| frame | No | Optional iframe/frame to switch into first. One level of nesting is supported. | |
| selector | No | ||
| timeoutMs | No | Timeout in milliseconds. Defaults to IE_MCP_TIMEOUT_MS. |