> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Recording options, written as tests

> Short procedures that each vary one recording option or one automatic capture level, in every supported format.

Each example on this page varies one setting in a short procedure, shown as prose, detected tests, inline tests, and a standalone spec. For what each tab holds, see [Navigation and interaction](/reference/docs-as-tests/navigation-interaction).

The examples write their images and videos to a `.dd-output` folder next to the example files. For full procedures, see [Screenshots and recordings](/reference/docs-as-tests/capture).

## `autoScreenshot` and `autoRecord` precedence

A test's value wins over the spec's, which wins over the config's. The examples config turns both off. The `autoRecord` examples run in headless Chrome, which records its tab.

### `autoScreenshot` on in config

**Varies:** `config.autoScreenshot` · **Value:** `true` · **Effect:** saves a screenshot after every step to the run folder.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoScreenshot on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoScreenshot on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoScreenshot on in config

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot on in config</title></head>
<body>
<h1>Type text with autoScreenshot on in config</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoScreenshot on in config
==========================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-config-true">
  <title>Type text with autoScreenshot on in config</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autoscreenshot-config-true","detectSteps":true} -->

# Type text with autoScreenshot on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autoscreenshot-config-true","detectSteps":true} */}

# Type text with autoScreenshot on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoScreenshot on in config

// (test {"testId":"capture-autoscreenshot-config-true","detectSteps":true})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot on in config</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-config-true","detectSteps":true} -->
<h1>Type text with autoScreenshot on in config</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoScreenshot on in config
==========================================

.. test {"testId":"capture-autoscreenshot-config-true","detectSteps":true}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-config-true">
  <title>Type text with autoScreenshot on in config</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-config-true","detectSteps":true}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autoscreenshot-config-true","detectSteps":false} -->

# Type text with autoScreenshot on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autoscreenshot-config-true","detectSteps":false} */}

# Type text with autoScreenshot on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoScreenshot on in config

// (test {"testId":"capture-autoscreenshot-config-true","detectSteps":false})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot on in config</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-config-true","detectSteps":false} -->
<h1>Type text with autoScreenshot on in config</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoScreenshot on in config
==========================================

.. test {"testId":"capture-autoscreenshot-config-true","detectSteps":false}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-config-true">
  <title>Type text with autoScreenshot on in config</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-config-true","detectSteps":false}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-autoscreenshot-config-true",
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-autoscreenshot-config-true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoScreenshot: true` on the test

**Varies:** `test.autoScreenshot` · **Value:** `true` · **Effect:** turns it on for this test, though the config turns it off.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoScreenshot on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoScreenshot on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoScreenshot on for one test

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot on for one test</title></head>
<body>
<h1>Type text with autoScreenshot on for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoScreenshot on for one test
=============================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-test-true">
  <title>Type text with autoScreenshot on for one test</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autoscreenshot-test-true","detectSteps":true,"autoScreenshot":true} -->

# Type text with autoScreenshot on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autoscreenshot-test-true","detectSteps":true,"autoScreenshot":true} */}

# Type text with autoScreenshot on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoScreenshot on for one test

// (test {"testId":"capture-autoscreenshot-test-true","detectSteps":true,"autoScreenshot":true})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot on for one test</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-test-true","detectSteps":true,"autoScreenshot":true} -->
<h1>Type text with autoScreenshot on for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoScreenshot on for one test
=============================================

.. test {"testId":"capture-autoscreenshot-test-true","detectSteps":true,"autoScreenshot":true}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-test-true">
  <title>Type text with autoScreenshot on for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-test-true","detectSteps":true,"autoScreenshot":true}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autoscreenshot-test-true","detectSteps":false,"autoScreenshot":true} -->

# Type text with autoScreenshot on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autoscreenshot-test-true","detectSteps":false,"autoScreenshot":true} */}

# Type text with autoScreenshot on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoScreenshot on for one test

// (test {"testId":"capture-autoscreenshot-test-true","detectSteps":false,"autoScreenshot":true})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot on for one test</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-test-true","detectSteps":false,"autoScreenshot":true} -->
<h1>Type text with autoScreenshot on for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoScreenshot on for one test
=============================================

.. test {"testId":"capture-autoscreenshot-test-true","detectSteps":false,"autoScreenshot":true}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-test-true">
  <title>Type text with autoScreenshot on for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-test-true","detectSteps":false,"autoScreenshot":true}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-autoscreenshot-test-true",
      "autoScreenshot": true,
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-autoscreenshot-test-true
    autoScreenshot: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoScreenshot: false` on the test over config

**Varies:** `test.autoScreenshot` · **Value:** `false` · **Effect:** turns it off for this test, though the config turns it on.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoScreenshot off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoScreenshot off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoScreenshot off for one test

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot off for one test</title></head>
<body>
<h1>Type text with autoScreenshot off for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoScreenshot off for one test
==============================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-test-false">
  <title>Type text with autoScreenshot off for one test</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autoscreenshot-test-false","detectSteps":true,"autoScreenshot":false} -->

# Type text with autoScreenshot off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autoscreenshot-test-false","detectSteps":true,"autoScreenshot":false} */}

# Type text with autoScreenshot off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoScreenshot off for one test

// (test {"testId":"capture-autoscreenshot-test-false","detectSteps":true,"autoScreenshot":false})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot off for one test</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-test-false","detectSteps":true,"autoScreenshot":false} -->
<h1>Type text with autoScreenshot off for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoScreenshot off for one test
==============================================

.. test {"testId":"capture-autoscreenshot-test-false","detectSteps":true,"autoScreenshot":false}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-test-false">
  <title>Type text with autoScreenshot off for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-test-false","detectSteps":true,"autoScreenshot":false}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autoscreenshot-test-false","detectSteps":false,"autoScreenshot":false} -->

# Type text with autoScreenshot off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autoscreenshot-test-false","detectSteps":false,"autoScreenshot":false} */}

# Type text with autoScreenshot off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoScreenshot off for one test

// (test {"testId":"capture-autoscreenshot-test-false","detectSteps":false,"autoScreenshot":false})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot off for one test</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-test-false","detectSteps":false,"autoScreenshot":false} -->
<h1>Type text with autoScreenshot off for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoScreenshot off for one test
==============================================

.. test {"testId":"capture-autoscreenshot-test-false","detectSteps":false,"autoScreenshot":false}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-test-false">
  <title>Type text with autoScreenshot off for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-test-false","detectSteps":false,"autoScreenshot":false}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-autoscreenshot-test-false",
      "autoScreenshot": false,
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-autoscreenshot-test-false
    autoScreenshot: false
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoScreenshot: false` on the spec over config

**Varies:** `spec.autoScreenshot` · **Value:** `false` · **Effect:** turns it off for every test in the spec. Inline statements can't set spec fields, so the inline and detected variants set it on the test.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoScreenshot off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoScreenshot off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoScreenshot off for a spec

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot off for a spec</title></head>
<body>
<h1>Type text with autoScreenshot off for a spec</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoScreenshot off for a spec
============================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-spec-false">
  <title>Type text with autoScreenshot off for a spec</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autoscreenshot-spec-false","detectSteps":true,"autoScreenshot":false} -->

# Type text with autoScreenshot off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autoscreenshot-spec-false","detectSteps":true,"autoScreenshot":false} */}

# Type text with autoScreenshot off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoScreenshot off for a spec

// (test {"testId":"capture-autoscreenshot-spec-false","detectSteps":true,"autoScreenshot":false})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot off for a spec</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-spec-false","detectSteps":true,"autoScreenshot":false} -->
<h1>Type text with autoScreenshot off for a spec</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoScreenshot off for a spec
============================================

.. test {"testId":"capture-autoscreenshot-spec-false","detectSteps":true,"autoScreenshot":false}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-spec-false">
  <title>Type text with autoScreenshot off for a spec</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-spec-false","detectSteps":true,"autoScreenshot":false}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autoscreenshot-spec-false","detectSteps":false,"autoScreenshot":false} -->

# Type text with autoScreenshot off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autoscreenshot-spec-false","detectSteps":false,"autoScreenshot":false} */}

# Type text with autoScreenshot off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoScreenshot off for a spec

// (test {"testId":"capture-autoscreenshot-spec-false","detectSteps":false,"autoScreenshot":false})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoScreenshot off for a spec</title></head>
<body>
<!-- test {"testId":"capture-autoscreenshot-spec-false","detectSteps":false,"autoScreenshot":false} -->
<h1>Type text with autoScreenshot off for a spec</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoScreenshot off for a spec
============================================

.. test {"testId":"capture-autoscreenshot-spec-false","detectSteps":false,"autoScreenshot":false}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autoscreenshot-spec-false">
  <title>Type text with autoScreenshot off for a spec</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autoscreenshot-spec-false","detectSteps":false,"autoScreenshot":false}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "autoScreenshot": false,
  "tests": [
    {
      "testId": "capture-autoscreenshot-spec-false",
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
autoScreenshot: false
tests:
  - testId: capture-autoscreenshot-spec-false
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoRecord` on in config

**Varies:** `config.autoRecord` · **Value:** `true` · **Effect:** saves a video of the whole test to the run folder.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoRecord on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoRecord on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoRecord on in config

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord on in config</title></head>
<body>
<h1>Type text with autoRecord on in config</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoRecord on in config
======================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-config-true">
  <title>Type text with autoRecord on in config</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autorecord-config-true","detectSteps":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autorecord-config-true","detectSteps":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoRecord on in config

// (test {"testId":"capture-autorecord-config-true","detectSteps":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord on in config</title></head>
<body>
<!-- test {"testId":"capture-autorecord-config-true","detectSteps":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord on in config</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoRecord on in config
======================================

.. test {"testId":"capture-autorecord-config-true","detectSteps":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-config-true">
  <title>Type text with autoRecord on in config</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-config-true","detectSteps":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autorecord-config-true","detectSteps":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autorecord-config-true","detectSteps":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord on in config

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoRecord on in config

// (test {"testId":"capture-autorecord-config-true","detectSteps":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord on in config</title></head>
<body>
<!-- test {"testId":"capture-autorecord-config-true","detectSteps":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord on in config</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoRecord on in config
======================================

.. test {"testId":"capture-autorecord-config-true","detectSteps":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-config-true">
  <title>Type text with autoRecord on in config</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-config-true","detectSteps":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-autorecord-config-true",
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-autorecord-config-true
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoRecord: true` on the test

**Varies:** `test.autoRecord` · **Value:** `true` · **Effect:** turns it on for this test, though the config turns it off.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoRecord on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoRecord on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoRecord on for one test

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord on for one test</title></head>
<body>
<h1>Type text with autoRecord on for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoRecord on for one test
=========================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-test-true">
  <title>Type text with autoRecord on for one test</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autorecord-test-true","detectSteps":true,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autorecord-test-true","detectSteps":true,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoRecord on for one test

// (test {"testId":"capture-autorecord-test-true","detectSteps":true,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord on for one test</title></head>
<body>
<!-- test {"testId":"capture-autorecord-test-true","detectSteps":true,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord on for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoRecord on for one test
=========================================

.. test {"testId":"capture-autorecord-test-true","detectSteps":true,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-test-true">
  <title>Type text with autoRecord on for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-test-true","detectSteps":true,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autorecord-test-true","detectSteps":false,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autorecord-test-true","detectSteps":false,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord on for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoRecord on for one test

// (test {"testId":"capture-autorecord-test-true","detectSteps":false,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord on for one test</title></head>
<body>
<!-- test {"testId":"capture-autorecord-test-true","detectSteps":false,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord on for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoRecord on for one test
=========================================

.. test {"testId":"capture-autorecord-test-true","detectSteps":false,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-test-true">
  <title>Type text with autoRecord on for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-test-true","detectSteps":false,"autoRecord":true,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-autorecord-test-true",
      "autoRecord": true,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-autorecord-test-true
    autoRecord: true
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoRecord: false` on the test over config

**Varies:** `test.autoRecord` · **Value:** `false` · **Effect:** turns it off for this test, though the config turns it on.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoRecord off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoRecord off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoRecord off for one test

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord off for one test</title></head>
<body>
<h1>Type text with autoRecord off for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoRecord off for one test
==========================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-test-false">
  <title>Type text with autoRecord off for one test</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autorecord-test-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autorecord-test-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoRecord off for one test

// (test {"testId":"capture-autorecord-test-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord off for one test</title></head>
<body>
<!-- test {"testId":"capture-autorecord-test-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord off for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoRecord off for one test
==========================================

.. test {"testId":"capture-autorecord-test-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-test-false">
  <title>Type text with autoRecord off for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-test-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autorecord-test-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autorecord-test-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord off for one test

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoRecord off for one test

// (test {"testId":"capture-autorecord-test-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord off for one test</title></head>
<body>
<!-- test {"testId":"capture-autorecord-test-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord off for one test</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoRecord off for one test
==========================================

.. test {"testId":"capture-autorecord-test-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-test-false">
  <title>Type text with autoRecord off for one test</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-test-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-autorecord-test-false",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-autorecord-test-false
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

### `autoRecord: false` on the spec over config

**Varies:** `spec.autoRecord` · **Value:** `false` · **Effect:** turns it off for every test in the spec. Inline statements can't set spec fields, so the inline and detected variants set it on the test.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Type text with autoRecord off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Type text with autoRecord off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Click **Type here:**.
3. Type "Hello".
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Type text with autoRecord off for a spec

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Click *Type here:*.
. Type "Hello".
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord off for a spec</title></head>
<body>
<h1>Type text with autoRecord off for a spec</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Type text with autoRecord off for a spec
========================================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Click **Type here:**.

#. Type "Hello".
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-spec-false">
  <title>Type text with autoRecord off for a spec</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-autorecord-spec-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
3. Type "Hello".

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-autorecord-spec-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
3. Type "Hello".

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Type text with autoRecord off for a spec

// (test {"testId":"capture-autorecord-spec-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
. Type "Hello".

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord off for a spec</title></head>
<body>
<!-- test {"testId":"capture-autorecord-spec-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord off for a spec</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Type text with autoRecord off for a spec
========================================

.. test {"testId":"capture-autorecord-spec-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

#. Type "Hello".

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-spec-false">
  <title>Type text with autoRecord off for a spec</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-spec-false","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-autorecord-spec-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Type text with autoRecord off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
3. Type "Hello".
   <!-- step {"type":"Hello"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-autorecord-spec-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Type text with autoRecord off for a spec

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
3. Type "Hello".
   {/* step {"type":"Hello"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Type text with autoRecord off for a spec

// (test {"testId":"capture-autorecord-spec-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Type text with autoRecord off for a spec</title></head>
<body>
<!-- test {"testId":"capture-autorecord-spec-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Type text with autoRecord off for a spec</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Type text with autoRecord off for a spec
========================================

.. test {"testId":"capture-autorecord-spec-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-autorecord-spec-false">
  <title>Type text with autoRecord off for a spec</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-autorecord-spec-false","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "autoRecord": false,
  "tests": [
    {
      "testId": "capture-autorecord-spec-false",
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
autoRecord: false
tests:
  - testId: capture-autorecord-spec-false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - click: "Type here:"
      - type: Hello
```

## `record` and `stopRecord` permutations

Each example records typing in a field. The `browser` engine runs in headless Chrome on Windows, macOS, and Linux. The `ffmpeg` example needs a display, so it runs only in headed Chrome on Windows and macOS.

### String path

**Varies:** `record` · **Value:** `".dd-output/typing.webm"` · **Effect:** records to the path. With no `overwrite`, it skips when the file exists.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-string">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-form-string","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":".dd-output/typing.webm"} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-form-string","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":".dd-output/typing.webm"} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-form-string","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":".dd-output/typing.webm"})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-form-string","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":".dd-output/typing.webm"} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-form-string","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":".dd-output/typing.webm"}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-string">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-form-string","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":".dd-output/typing.webm"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-form-string","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":".dd-output/typing.webm"} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-form-string","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":".dd-output/typing.webm"} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-form-string","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":".dd-output/typing.webm"})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-form-string","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":".dd-output/typing.webm"} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-form-string","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":".dd-output/typing.webm"}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-string">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-form-string","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":".dd-output/typing.webm"}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-form-string",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": ".dd-output/typing.webm"
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-form-string
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record: .dd-output/typing.webm
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `true`

**Varies:** `record` · **Value:** `true` · **Effect:** records to `<stepId>.mp4` in `outputDir` with the engine Doc Detective picks.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-true">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-form-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":true} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-form-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":true} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-form-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":true})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-form-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":true} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-form-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":true}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-true">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-form-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":true}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-form-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":true} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-form-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":true} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-form-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":true})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-form-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":true} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-form-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":true}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-true">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-form-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":true}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-form-true",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": true
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-form-true
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record: true
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### Object with `path`, `directory`, and `overwrite`

**Varies:** `record` · **Value:** `{ "path", "directory", "overwrite": "true" }` · **Effect:** records to `record-object.webm` in `.dd-output`, replacing the last run's file.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-object">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-form-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-form-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-form-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-form-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-form-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-form-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-form-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-form-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-form-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-form-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-form-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-form-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-form-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"record-object.webm","directory":".dd-output","overwrite":"true"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-form-object",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "record-object.webm",
            "directory": ".dd-output",
            "overwrite": "true"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-form-object
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: record-object.webm
          directory: .dd-output
          overwrite: "true"
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `engine: "browser"`

**Varies:** `record.engine` · **Value:** `"browser"` · **Effect:** records the Chrome tab in a headed or a headless browser.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-engine-browser">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-engine-browser","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-engine-browser","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-engine-browser","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-engine-browser","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-engine-browser","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-engine-browser">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-engine-browser","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-engine-browser","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-engine-browser","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-engine-browser","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-engine-browser","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-engine-browser","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-engine-browser">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-engine-browser","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"engine-browser.webm","directory":".dd-output","overwrite":"true","engine":"browser"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-engine-browser",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "engine-browser.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "engine": "browser"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-engine-browser
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: engine-browser.webm
          directory: .dd-output
          overwrite: "true"
          engine: browser
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `engine: "ffmpeg"`

**Varies:** `record.engine` · **Value:** `"ffmpeg"` · **Effect:** records the screen, so the test runs only in headed Chrome on Windows and macOS.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-engine-ffmpeg">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-engine-ffmpeg","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-engine-ffmpeg","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-engine-ffmpeg","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-engine-ffmpeg","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-engine-ffmpeg","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-engine-ffmpeg">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-engine-ffmpeg","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-engine-ffmpeg","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-engine-ffmpeg","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-engine-ffmpeg","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-engine-ffmpeg","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-engine-ffmpeg","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-engine-ffmpeg">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-engine-ffmpeg","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac"],"browsers":{"name":"chrome","headless":false}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"engine-ffmpeg.mp4","directory":".dd-output","overwrite":"true","engine":"ffmpeg"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-engine-ffmpeg",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac"
          ],
          "browsers": {
            "name": "chrome",
            "headless": false
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "engine-ffmpeg.mp4",
            "directory": ".dd-output",
            "overwrite": "true",
            "engine": "ffmpeg"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-engine-ffmpeg
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
        browsers:
          name: chrome
          headless: false
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: engine-ffmpeg.mp4
          directory: .dd-output
          overwrite: "true"
          engine: ffmpeg
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### Named recording

**Varies:** `record.name` · **Value:** `"typing"` · **Effect:** gives the recording a name that `stopRecord` can target.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-named">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-named","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":"typing"} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-named","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":"typing"} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-named","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":"typing"})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-named","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":"typing"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-named","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":"typing"}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-named">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-named","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":"typing"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-named","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":"typing"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-named","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":"typing"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-named","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":"typing"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-named","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":"typing"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-named","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":"typing"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-named">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-named","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"named.webm","directory":".dd-output","overwrite":"true","name":"typing"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":"typing"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-named",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "named.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "name": "typing"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": "typing"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-named
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: named.webm
          directory: .dd-output
          overwrite: "true"
          name: typing
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: typing
```

### `verify` with `minDuration` and `maxDuration`

**Varies:** `record.verify` · **Value:** `{ "minDuration": 0.5, "maxDuration": 120 }` · **Effect:** fails the stop step if the video is shorter than half a second or longer than two minutes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-duration">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-verify-duration","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-verify-duration","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-duration","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-duration","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-duration","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-duration">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-duration","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-verify-duration","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-verify-duration","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-duration","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-duration","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-duration","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-duration">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-duration","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-duration.webm","directory":".dd-output","overwrite":"true","verify":{"minDuration":0.5,"maxDuration":120}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-verify-duration",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "verify-duration.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "verify": {
              "minDuration": 0.5,
              "maxDuration": 120
            }
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-verify-duration
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: verify-duration.webm
          directory: .dd-output
          overwrite: "true"
          verify:
            minDuration: 0.5
            maxDuration: 120
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `verify` with `notBlack`

**Varies:** `record.verify.notBlack` · **Value:** `true` · **Effect:** fails the stop step if the video is almost all black.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-notblack">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-verify-notblack","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-verify-notblack","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-notblack","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-notblack","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-notblack","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-notblack">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-notblack","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-verify-notblack","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-verify-notblack","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-notblack","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-notblack","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-notblack","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-notblack">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-notblack","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-notblack.webm","directory":".dd-output","overwrite":"true","verify":{"notBlack":true}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-verify-notblack",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "verify-notblack.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "verify": {
              "notBlack": true
            }
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-verify-notblack
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: verify-notblack.webm
          directory: .dd-output
          overwrite: "true"
          verify:
            notBlack: true
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `verify` with `resolution: true`

**Varies:** `record.verify.resolution` · **Value:** `true` · **Effect:** fails the stop step if the video's size doesn't match what Doc Detective expected to record.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-resolution">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-verify-resolution","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-verify-resolution","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-resolution","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-resolution","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-resolution","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-resolution">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-resolution","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-verify-resolution","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-verify-resolution","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-resolution","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-resolution","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-resolution","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-resolution">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-resolution","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-resolution.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":true}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-verify-resolution",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "verify-resolution.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "verify": {
              "resolution": true
            }
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-verify-resolution
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: verify-resolution.webm
          directory: .dd-output
          overwrite: "true"
          verify:
            resolution: true
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `verify` with `resolution` as an object

**Varies:** `record.verify.resolution` · **Value:** `{ "width": 800, "height": 600 }` · **Effect:** fails the stop step unless the video is exactly 800 by 600 pixels, the size of the test's headless Chrome viewport.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-resolution-object">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-verify-resolution-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-verify-resolution-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-resolution-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-resolution-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-resolution-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-resolution-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-resolution-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-verify-resolution-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-verify-resolution-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-verify-resolution-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-verify-resolution-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-verify-resolution-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-verify-resolution-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-verify-resolution-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true,"viewport":{"width":800,"height":600}}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"verify-resolution-object.webm","directory":".dd-output","overwrite":"true","verify":{"resolution":{"width":800,"height":600}}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-verify-resolution-object",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true,
            "viewport": {
              "width": 800,
              "height": 600
            }
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "verify-resolution-object.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "verify": {
              "resolution": {
                "width": 800,
                "height": 600
              }
            }
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-verify-resolution-object
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
          viewport:
            width: 800
            height: 600
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: verify-resolution-object.webm
          directory: .dd-output
          overwrite: "true"
          verify:
            resolution:
              width: 800
              height: 600
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

The test's `runOn` runs it on headless Chrome only, where the video matches the viewport. Headed Chrome on a display smaller than the window can record a shorter video, and the run warns.

### `checkpoints: true`

**Varies:** `record.checkpoints` · **Value:** `true` · **Effect:** saves a screenshot after each step and compares it with the last run's, with the default settings.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-checkpoints-true">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-checkpoints-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-checkpoints-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-checkpoints-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-checkpoints-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-checkpoints-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-checkpoints-true">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-checkpoints-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-checkpoints-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-checkpoints-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-checkpoints-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-checkpoints-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-checkpoints-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-checkpoints-true">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-checkpoints-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"checkpoints-true.webm","directory":".dd-output","overwrite":"true","checkpoints":true}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-checkpoints-true",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "checkpoints-true.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "checkpoints": true
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-checkpoints-true
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: checkpoints-true.webm
          directory: .dd-output
          overwrite: "true"
          checkpoints: true
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `checkpoints` as an object

**Varies:** `record.checkpoints` · **Value:** `{ "maxVariation": 0.5, "directory": ".dd-output/typing-checkpoints" }` · **Effect:** keeps the comparison images in its own folder and tolerates more change before it warns.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-checkpoints-object">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-checkpoints-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-checkpoints-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-checkpoints-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-checkpoints-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-checkpoints-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-checkpoints-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-checkpoints-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-checkpoints-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-checkpoints-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-checkpoints-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-checkpoints-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-checkpoints-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-checkpoints-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-checkpoints-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"checkpoints-object.webm","directory":".dd-output","overwrite":"true","checkpoints":{"maxVariation":0.5,"directory":".dd-output/typing-checkpoints"}}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-checkpoints-object",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "checkpoints-object.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "checkpoints": {
              "maxVariation": 0.5,
              "directory": ".dd-output/typing-checkpoints"
            }
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-checkpoints-object
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: checkpoints-object.webm
          directory: .dd-output
          overwrite: "true"
          checkpoints:
            maxVariation: 0.5
            directory: .dd-output/typing-checkpoints
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `stopRecord: true`

**Varies:** `stopRecord` · **Value:** `true` · **Effect:** stops the most recent recording.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-true">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-stoprecord-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-stoprecord-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-stoprecord-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-stoprecord-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-stoprecord-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-true">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-stoprecord-true","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-stoprecord-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":true} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-stoprecord-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":true} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-stoprecord-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":true})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-stoprecord-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":true} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-stoprecord-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":true}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-true">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-stoprecord-true","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"stoprecord-true.webm","directory":".dd-output","overwrite":"true"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":true}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-stoprecord-true",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "stoprecord-true.webm",
            "directory": ".dd-output",
            "overwrite": "true"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": true
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-stoprecord-true
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: stoprecord-true.webm
          directory: .dd-output
          overwrite: "true"
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: true
```

### `stopRecord` with a name

**Varies:** `stopRecord` · **Value:** `"typing"` · **Effect:** stops the recording named `typing`.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-name">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-stoprecord-name","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":"typing"} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-stoprecord-name","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":"typing"} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-stoprecord-name","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":"typing"})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-stoprecord-name","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":"typing"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-stoprecord-name","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":"typing"}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-name">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-stoprecord-name","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":"typing"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-stoprecord-name","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":"typing"} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-stoprecord-name","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":"typing"} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-stoprecord-name","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":"typing"})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-stoprecord-name","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":"typing"} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-stoprecord-name","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":"typing"}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-name">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-stoprecord-name","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"stoprecord-name.webm","directory":".dd-output","overwrite":"true","name":"typing"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":"typing"}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-stoprecord-name",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "stoprecord-name.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "name": "typing"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": "typing"
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-stoprecord-name
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: stoprecord-name.webm
          directory: .dd-output
          overwrite: "true"
          name: typing
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord: typing
```

### `stopRecord` as an object

**Varies:** `stopRecord` · **Value:** `{ "name": "typing" }` · **Effect:** stops the recording named `typing`, written as an object.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
2. Start recording.
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Record typing in a field

. Go to http://localhost:8092/type-echo.html[the type echo page].
. Start recording.
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.</li>
  <li>Start recording.</li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Record typing in a field
========================

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

#. Start recording.

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-object">
  <title>Record typing in a field</title>
  <taskbody>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd></step>
      <step><cmd>Start recording.</cmd></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd></step>
    </steps>
  </taskbody>
</task>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
<!-- test {"testId":"capture-record-stoprecord-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}} -->
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":{"name":"typing"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
{/* test {"testId":"capture-record-stoprecord-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}} */}
3. Click **Type here:**.
4. Type "Hello".
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":{"name":"typing"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Record typing in a field

// (test {"testId":"capture-record-stoprecord-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}})
. Click *Type here:*.
. Type "Hello".
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":{"name":"typing"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-stoprecord-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}} --></li>
  <li>Click <strong>Type here:</strong>.</li>
  <li>Type "Hello".</li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":{"name":"typing"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-stoprecord-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}}

#. Click **Type here:**.

#. Type "Hello".

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":{"name":"typing"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-stoprecord-object","detectSteps":true,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd></step>
      <step><cmd>Type "Hello".</cmd></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":{"name":"typing"}}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
<!-- test {"testId":"capture-record-stoprecord-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   <!-- step {"goTo":"http://localhost:8092/type-echo.html"} -->
2. Start recording.
   <!-- step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}} -->
3. Click **Type here:**.
   <!-- step {"click":"Type here:"} -->
4. Type "Hello".
   <!-- step {"type":"Hello"} -->
5. Wait a moment, then stop the recording.
   <!-- step {"wait":1000} -->
   <!-- step {"stopRecord":{"name":"typing"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
{/* test {"testId":"capture-record-stoprecord-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} */}

# Record typing in a field

1. Go to [the type echo page](http://localhost:8092/type-echo.html).
   {/* step {"goTo":"http://localhost:8092/type-echo.html"} */}
2. Start recording.
   {/* step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}} */}
3. Click **Type here:**.
   {/* step {"click":"Type here:"} */}
4. Type "Hello".
   {/* step {"type":"Hello"} */}
5. Wait a moment, then stop the recording.
   {/* step {"wait":1000} */}
   {/* step {"stopRecord":{"name":"typing"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Record typing in a field

// (test {"testId":"capture-record-stoprecord-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]})

. Go to http://localhost:8092/type-echo.html[the type echo page].
+
// (step {"goTo":"http://localhost:8092/type-echo.html"})
. Start recording.
+
// (step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}})
. Click *Type here:*.
+
// (step {"click":"Type here:"})
. Type "Hello".
+
// (step {"type":"Hello"})
. Wait a moment, then stop the recording.
+
// (step {"wait":1000})
+
// (step {"stopRecord":{"name":"typing"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Record typing in a field</title></head>
<body>
<!-- test {"testId":"capture-record-stoprecord-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]} -->
<h1>Record typing in a field</h1>
<ol>
  <li>Go to <a href="http://localhost:8092/type-echo.html">the type echo page</a>.
    <!-- step {"goTo":"http://localhost:8092/type-echo.html"} --></li>
  <li>Start recording.
    <!-- step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}} --></li>
  <li>Click <strong>Type here:</strong>.
    <!-- step {"click":"Type here:"} --></li>
  <li>Type "Hello".
    <!-- step {"type":"Hello"} --></li>
  <li>Wait a moment, then stop the recording.
    <!-- step {"wait":1000} -->
    <!-- step {"stopRecord":{"name":"typing"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Record typing in a field
========================

.. test {"testId":"capture-record-stoprecord-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}

#. Go to `the type echo page <http://localhost:8092/type-echo.html>`_.

   .. step {"goTo":"http://localhost:8092/type-echo.html"}

#. Start recording.

   .. step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}}

#. Click **Type here:**.

   .. step {"click":"Type here:"}

#. Type "Hello".

   .. step {"type":"Hello"}

#. Wait a moment, then stop the recording.

   .. step {"wait":1000}

   .. step {"stopRecord":{"name":"typing"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="capture-record-stoprecord-object">
  <title>Record typing in a field</title>
  <taskbody>
    <data name="doc-detective" value='test {"testId":"capture-record-stoprecord-object","detectSteps":false,"autoRecord":false,"runOn":[{"platforms":["windows","mac","linux"],"browsers":{"name":"chrome","headless":true}}]}'/>
    <steps>
      <step><cmd>Go to <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref>.</cmd>
        <info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/type-echo.html"}'/></info></step>
      <step><cmd>Start recording.</cmd>
        <info><data name="doc-detective" value='step {"record":{"path":"stoprecord-object.webm","directory":".dd-output","overwrite":"true","name":"typing"}}'/></info></step>
      <step><cmd>Click <uicontrol>Type here:</uicontrol>.</cmd>
        <info><data name="doc-detective" value='step {"click":"Type here:"}'/></info></step>
      <step><cmd>Type "Hello".</cmd>
        <info><data name="doc-detective" value='step {"type":"Hello"}'/></info></step>
      <step><cmd>Wait a moment, then stop the recording.</cmd>
        <info><data name="doc-detective" value='step {"wait":1000}'/>
          <data name="doc-detective" value='step {"stopRecord":{"name":"typing"}}'/></info></step>
    </steps>
    <data name="doc-detective" value="test end"/>
  </taskbody>
</task>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "capture-record-stoprecord-object",
      "autoRecord": false,
      "runOn": [
        {
          "platforms": [
            "windows",
            "mac",
            "linux"
          ],
          "browsers": {
            "name": "chrome",
            "headless": true
          }
        }
      ],
      "steps": [
        {
          "goTo": "http://localhost:8092/type-echo.html"
        },
        {
          "record": {
            "path": "stoprecord-object.webm",
            "directory": ".dd-output",
            "overwrite": "true",
            "name": "typing"
          }
        },
        {
          "click": "Type here:"
        },
        {
          "type": "Hello"
        },
        {
          "wait": 1000
        },
        {
          "stopRecord": {
            "name": "typing"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: capture-record-stoprecord-object
    autoRecord: false
    runOn:
      - platforms:
          - windows
          - mac
          - linux
        browsers:
          name: chrome
          headless: true
    steps:
      - goTo: http://localhost:8092/type-echo.html
      - record:
          path: stoprecord-object.webm
          directory: .dd-output
          overwrite: "true"
          name: typing
      - click: "Type here:"
      - type: Hello
      - wait: 1000
      - stopRecord:
          name: typing
```