How-to

Page title assert (toHaveTitle)

Page title assert (toHaveTitle) ​

Expect assertion: the tab title equals Value. Target is not used.

Step model ​

action_nametoHaveTitle
GroupExpect
TargetUnused
ValueRequired (title)
expected_valueUnused
TEST_ACCOUNTAllowed
Do not confuse withtoHaveURL, toHaveText

Target/Value facts match the source-of-truth catalog and Autotest step.

Prerequisites ​

  1. The page is already open in the worker tab.

Steps ​

  1. Add a toHaveTitle step.
  2. Leave Target empty.
  3. Enter the tab title in Value.
  4. Save.

The step is stored on the autotest. Next - neighbouring steps or autotest run creation.

Examples ​

Cart title ​

Fields in the UI:

FieldValue
action_nametoHaveTitle
Targetempty
ValueCart
value_source_typeINLINE

Step JSON fragment (copy-paste):

json
{
  "action_name": "toHaveTitle",
  "value_text": "Cart",
  "value_source_type": "INLINE"
}

Common mistakes ​

  • This is the tab title, not a heading on the page. For an on-page heading, set a Target and use toHaveText.

Screenshots ​

Screenshots of the step form for toHaveTitle will be added here in a later pass.

Version 1.0.0 · Last updated 2026-10-03

Did this page help?