Browser

Run test using Google Chrome.

Steps

ParamDescription
urlWhich url do you want to request?

waitVisible

ParamDescription
selectorWait until selector is visible

click

ParamDescription
selectorWhich element do you want to click?

urlShouldBe

ParamDescription
urlWhich final url

sendKeys

ParamDescription
selectorWhich element do you want to text?
keysSend keys to selector

textShouldBe

ParamDescription
selectorWhere to search?
textSearch for a text string

Example

name: browser_test
description: test browser
scrapeInterval: 1m
timeout: 1s
tags:
  sla: dev
scenario:
  kind: browser
  steps:
    - type: navigateTo
      timeout: 1m
      params:
        url: "https://hidra.cloud/"
    - type: waitVisible
      params:
        selector: "#td-cover-block-0 > div > div > div > div > div > div > a.btn.btn-lg.btn-primary.mr-3.mb-4"
    - type: click
      params:
        selector: "#td-cover-block-0 > div > div > div > div > div > div > a.btn.btn-lg.btn-primary.mr-3.mb-4"
    - type: urlShouldBe
      params:
        url: "https://hidra.cloud/docs/"
    - type: textShouldBe
      params:
        selector: 'body > div > div > div > main > div > div.pageinfo.pageinfo-primary > p'
        text: Welcome to the Hidra documentation!

Last modified March 1, 2022: add examples (b300a4d)