---
title: "preview.click: Click preview — HTML kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/html/commands/preview.click"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/html/commands/preview.click](https://developer.kition.ai/docs/kits/html/commands/preview.click)

# 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)); reference: [HTML kit commands](https://developer.kition.ai/docs/kits/html.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `x` | `number` | no |  |
| `y` | `number` | no |  |

## 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `changed` | `boolean` | yes | whether the rendered page changed |

```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/html-darwin-arm64@0.1.0 and the kit itself (html_commands through @kition/cli@0.1.1, built from KitionAI/kition-html@e0ad2d3).
