HTML kit command

preview.click

Click preview

Clicks the rendered page at `x`, `y` (CSS pixels from the page's top-left) so its scripts react, without changing the saved source; answers whether the rendered page changed.

Kit
HTML 0.1.0 (HTML (.html or .htm))
Changes the document
no

Parameters

Parameters of preview.click
NameTypeRequiredDescription
xnumberno
ynumberno

Call through html_run

text
html_run {
  "path": "<file>.html",
  "steps": [{ "command": "preview.click" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: x, y. html_run answers the step’s result in completed[i].result.

Result

Result of preview.click
NameTypeRequiredDescription
changedbooleanyeswhether the rendered page changed
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "changed": {
      "description": "whether the rendered page changed",
      "type": "boolean"
    }
  },
  "required": [
    "changed"
  ],
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (html_commands through @kition/[email protected], built from KitionAI/kition-html@e0ad2d3). As data: commands.jsonl.