Selenium Elements API

Element discovery and interaction

Operations 3

POST /session/{sessionId}/element Find a single element #
POST /session/{sessionId}/elements Find multiple elements #
POST /session/{sessionId}/element/{elementId}/click Click an element #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/selenium-elements-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

selenium-elements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Selenium WebDriver (W3C Wire Protocol) Cookies Elements API
  description: Selenium WebDriver implements the W3C WebDriver protocol — a platform- and language-neutral HTTP wire protocol used by out-of-process programs to remotely instruct browsers. This OpenAPI definition lists common endpoints exposed by a WebDriver remote end (e.g. a Selenium Grid node, selenium-standalone, or a browser-specific driver such as chromedriver/geckodriver). No authentication is defined by the W3C protocol itself; deployments typically front the endpoint with a reverse proxy or run on a private network.
  version: '1.0'
  contact:
    name: Selenium
    url: https://www.selenium.dev/documentation/webdriver/
servers:
- url: http://localhost:4444/wd/hub
  description: Default Selenium standalone / Grid endpoint
- url: http://localhost:9515
  description: ChromeDriver default port
- url: http://localhost:4444
  description: Geckodriver / generic WebDriver default
tags:
- name: Elements
  description: Element discovery and interaction
paths:
  /session/{sessionId}/element:
    parameters:
    - $ref: '#/components/parameters/SessionId'
    post:
      tags:
      - Elements
      summary: Find a single element
      operationId: findElement
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Locator'
      responses:
        '200':
          description: Element reference
  /session/{sessionId}/elements:
    parameters:
    - $ref: '#/components/parameters/SessionId'
    post:
      tags:
      - Elements
      summary: Find multiple elements
      operationId: findElements
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Locator'
      responses:
        '200':
          description: Array of element references
  /session/{sessionId}/element/{elementId}/click:
    parameters:
    - $ref: '#/components/parameters/SessionId'
    - $ref: '#/components/parameters/ElementId'
    post:
      tags:
      - Elements
      summary: Click an element
      operationId: clickElement
      responses:
        '200':
          description: OK
components:
  parameters:
    SessionId:
      in: path
      name: sessionId
      required: true
      schema:
        type: string
      description: WebDriver session ID
    ElementId:
      in: path
      name: elementId
      required: true
      schema:
        type: string
      description: WebDriver element reference ID
  schemas:
    Locator:
      type: object
      required:
      - using
      - value
      properties:
        using:
          type: string
          enum:
          - css selector
          - link text
          - partial link text
          - tag name
          - xpath
        value:
          type: string