Skip to main content
Glama

Selenium MCP Server

browser_get_attribute

Extract the value of a specified attribute from a web element using Selenium WebDriver. Define element locator, attribute name, and optional timeout for precise automation tasks.

Instructions

Gets the value of an attribute from an element

Input Schema

NameRequiredDescriptionDefault
attributeYesName of the attribute to get
byYesLocator strategy to find element
timeoutNoMaximum time to wait for element in milliseconds
valueYesValue for the locator strategy

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "attribute": { "description": "Name of the attribute to get", "type": "string" }, "by": { "description": "Locator strategy to find element", "enum": [ "id", "css", "xpath", "name", "tag", "class", "link", "partialLink" ], "type": "string" }, "timeout": { "description": "Maximum time to wait for element in milliseconds", "type": "number" }, "value": { "description": "Value for the locator strategy", "type": "string" } }, "required": [ "by", "value", "attribute" ], "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/pshivapr/selenium-mcp'

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