Houston I have a problem

Script Editor Commands in StillAlive

Follow

The StillAlive Script Editor has many types of steps that you can use to navigate, perform actions and check things on your website.

The commands are broken down into three main categories, navigation, action and validation. This document explains each available step and gives examples on how to use it.


Conventions used in these articles

Each step is shown as the title of a section, the parts that are in CAPITAL LETTERS represent information that you need to fill in when using the step. Anything in ( parenthesis ) is an optional part of the step.

For example:

When I go to URL( expecting a STATUS response)

Means to use this step, you must provide a URL. You can also optionally add a check for a status code and if you do, you need to give the status code you are expecting.


Navigation Steps (used to begin your script)

The navigation steps are what you use to get StillAlive started. There are two navigation steps;

  • When I go to URL( expecting a STATUS response)
  • When I login via basic auth with "USERNAME" and "PASSWORD"

You can find out more about these on the Navigation Step Commands help page.


Action Steps (used to do something on the page)

Action steps are what you do to make StillAlive do something on your website, such as fill in a form, follow a link, click a button or the like.

  • When I follow "LINK NAME, ID OR TEXT"( within "CSS#SELECTOR")
  • When I press "BUTTON NAME, ID OR TEXT"( within "CSS#SELECTOR")
  • When I check "FIELD NAME OR ID" within "CSS#SELECTOR"
  • When I choose "FIELD NAME OR ID"( within "CSS#SELECTOR")
  • When I fill in "FIELD NAME OR ID" with "Text Value"( within "CSS#SELECTOR")
  • When I select "VALUE" from "FIELD NAME OR ID"( within "CSS#SELECTOR")
  • When I uncheck "FIELD NAME OR ID"( within "CSS#SELECTOR")

You can find out more about these on the Action Step Commands help page.


Validation Steps (used to check something about the page)

Validation steps are what you do to make StillAlive ensure something is or is not a certain way on your website, checking text is there, or options are selected etc.

  • Then I should be on https://stillalive.com/my/path.html
  • Then I should (not )see "TEXT"( within "CSS#SELECTOR")
  • Then I should (not )see /RegularExpression/( within "CSS#SELECTOR")
  • Then the "FIELD NAME OR ID" checkbox( within "CSS#SELECTOR") should (not )be checked
  • Then the "FIELD NAME OR ID" field( within "CSS#SELECTOR") should (not )contain "TEXT"
  • Then the "FIELD NAME OR ID" radio button( within "CSS#SELECTOR") should have "LABEL" selected
  • Then I should see the "OPTION NAME" option in "SELECT FIELD"( within "CSS#SELECTOR") is selected
  • Then the "HEADER-FIELD" header should include "TEXT"

 

You can find out more about these on the Validation Step Commands help page.

Was this article helpful?
0 out of 0 found this helpful

Comments