Skip to main content
The Get Full Elements Positions command (Command Type: 25) retrieves positions of DOM elements identified by a CSS selector, along with resolution details of the browser window, screen, and document.

Command Type

Command Type ID: 25

Parameters

ParameterTypeDescriptionRequired
selectorstringCSS selector for the target elementsYes
timeoutnumberTimeout in millisecondsYes
filtersFiltersOptional filters to refine element selectionNo

Filters Object

FieldTypeDescription
classNamestringFilter by class name
includeInnerTextArray of stringInclude elements whose inner text contains these strings
excludeInnerTextArray of stringExclude elements whose inner text contains these strings

Usage Examples

Get Full Positions with Viewport Info

{
  "command": "get-full-elements-positions",
  "params": {
    "selector": ".clickable-item",
    "timeout": 10000
  }
}

Common Use Cases

  • Coordinate Calculations: Use viewport and screen dimensions together with element coordinates for precise click targeting
  • Multi-Monitor Scenarios: Account for screen resolution differences