browser_find_page
Locate target pages like login, dashboard, or settings by checking URL, title, CSS selectors, and SPA buttons. Returns matched links and optionally auto-navigates.
Instructions
Smart page discovery: locate target page (login/signup/home/dashboard/admin/settings/profile/etc.) by priority chain (URL path > title > CSS selector > SPA button text > nav region > visible text), returns matched links and suggested navigation URL; optionally auto-navigate.
中文详情:
用途:根据目标页面关键词(login/signup/home/dashboard/admin/settings/profile 等)快速定位页面,支持 SPA 应用的按钮导航发现
何时使用:测试入口页(登录/注册/后台)未直接知晓 URL 时;SPA 应用通过按钮导航时;导航回归测试时;权限切换后定位目标页时
输出:{ ok: boolean, target: string, matched: boolean, matchMethod: string, score: number, links: array, buttons: array, suggestedUrl: string, navigated: boolean }
参数:
target (string, 必填):目标页面类型,可选 login/signup/home/dashboard/admin/settings/profile/search/cart/checkout/forgot-password/reset-password/logout/all
navigate (boolean, 可选):是否自动导航到发现的页面,默认 false
baseUrl (string, 可选):基础 URL,用于尝试常见路径,不指定时从当前 URL 推导
错误:target 值非法抛出 'Invalid target';未匹配且 navigate=true 时返回 matched=false
示例:{"target":"login","navigate":true,"baseUrl":"https://example.com"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | 目标页面类型:login / signup / home / dashboard / admin / settings / profile / search / cart / checkout / forgot-password / reset-password / logout / all | |
| baseUrl | No | 基础URL,用于尝试常见路径。不指定时从当前页面URL推导 | |
| navigate | No | 是否导航到发现的页面(如果还没在目标页面),默认false |