Skip to main content
Glama

WebScout MCP

by pyscout

wait_for_element

Wait for specific elements to appear on web pages before interacting with them. Prevents errors when handling dynamic content, page transitions, or elements that load after user actions like clicking buttons.

Instructions

Wait for a specific element to appear on the page before continuing. Essential for handling dynamic content that loads asynchronously, page transitions, or elements that appear after clicking buttons. Prevents errors from trying to interact with elements that haven't loaded yet. Commonly used after login, navigation, or clicking buttons that trigger loading states.

Input Schema

NameRequiredDescriptionDefault
selectorYesCSS selector of the element to wait for (e.g., '.chat-container', '#message-input', '[data-loaded="true"]')
sessionIdYesSession ID obtained from initialize_session
timeoutNoMaximum time in milliseconds to wait before timing out. Increase for slow-loading pages (default: 30000)

Input Schema (JSON Schema)

{ "properties": { "selector": { "description": "CSS selector of the element to wait for (e.g., '.chat-container', '#message-input', '[data-loaded=\"true\"]')", "type": "string" }, "sessionId": { "description": "Session ID obtained from initialize_session", "type": "string" }, "timeout": { "default": 30000, "description": "Maximum time in milliseconds to wait before timing out. Increase for slow-loading pages (default: 30000)", "type": "number" } }, "required": [ "sessionId", "selector" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pyscout/webscout-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server