Skip to main content
The Get Window Data Simple command (Command Type: 14) retrieves the value of a specified property from the browser’s window object using a simple dot-separated path string.

Command Type

Command Type ID: 14

Parameters

ParameterTypeDescriptionRequired
pathstringDot-separated path to the property. Example: "app.state.selectedOption" retrieves window.app.state.selectedOptionYes
timeoutnumberTimeout in millisecondsYes

Usage Examples

Get a Simple Window Property

{
  "command": "get-window-data-simple",
  "params": {
    "path": "app.config.apiUrl",
    "timeout": 5000
  }
}

Get Nested State

{
  "command": "get-window-data-simple",
  "params": {
    "path": "store.state.currentSport",
    "timeout": 8000
  }
}