Skip to main content
Glama

browser.wait_for_selector

Waits for a CSS selector to reach a specified state (visible, hidden, attached, detached) during browser automation, returning when met or timing out.

Instructions

Wait for a CSS selector to reach a specific state (visible, hidden, attached, detached). Returns when the condition is met or raises on timeout.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
selectorYes
timeout_msNo
stateNovisible

Latest Blog Posts

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/LvcidPsyche/auto-browser'

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