Skip to main content
Home

Main navigation

  • Home
  • Products
  • Services
  • Docs
  • Blog
  • About us
  • Contact
Documentation
  • Webship JS 2.0.x
    • Install Webship JS
      • DDEV Webship-JS
    • Global Settings
    • Step Definitions
    • API Steps
      • Given I am authenticating as "username" with "pa$$word" password
      • Given I set header "Header-Name" with value "Some-Value"
      • Given I set placeholder "{{placeholder}}" to "value"
      • Given I set the following headers:
      • Given I set the header "Header-Name" to "Header-Value"
      • Given I set the request body to 'JSON-data'
      • Given I set the request body with:
      • Given the API base URL is "url"
      • Then print API response
      • Then the API response code should be {number}
      • Then the API response should contain "text"
      • Then the API response should contain json:
      • Then the API response should not contain "text"
      • Then the JSON response should have "propertyPath" equal to "value"
      • Then the JSON response should have property "propertyPath"
      • Then the JSON response should not have property "propertyPath"
      • Then the response header "response header" should be "value"
      • Then the response should be valid JSON
      • When I send a METHOD request to "endpoint"
      • When I send a METHOD request to "endpoint" with body:
      • When I send a METHOD request to "endpoint" with form data:
      • When I send a METHOD request to "endpoint" with values:
    • Accessibility Steps
    • Action Steps
      • When I press "button"
        • When I press "button" by attribute
      • When I click "link"
        • When I click "link" by attribute
      • When I click "operation" in "text" row
      • When I attach the file "file name" to "element"
    • Assertion Steps
      • Then I should see
        • Then I should see "text in the page"
        • Then I should not see "text in the page"
        • Then I should see text matching "text pattern"
        • Then I should not see text matching "text pattern"
        • Then I should see text matching "text pattern" in the "element" element
        • Then I should not see text matching "text pattern" in the "element" element
        • Then I should see (a/an) "field" element
        • Then I should not see "value" in the "text" element
        • Then I should not see (a/an) "field" element
        • Then I should see "value" in the "text" element
        • Then I should see "value" in the "text" element by attr
        • Then I should not see "value" in the "text" element by attr
      • Then the item should contain
        • Then the "item" field should contain "value"
        • Then the "item" field should not contain "value"
        • Then the response should contain "text in the page"
        • Then the response should not contain "text in the page"
        • Then the "item" element should contain "CSS style"
        • Then the "item" element should not contain "CSS style" - Cloned
      • Then I should see "operation" in "text" row
      • Then the response status code should be {number}
    • Auth State Steps
    • Clock Steps
    • Cookie Steps
    • Debug Steps
    • Dialog Steps
    • Element Steps
    • Field Steps
      • Then the "item" checkbox
        • Then the "item" checkbox is checked
        • Then the "item" checkbox is not checked
        • Then the "item" checkbox should be checked
        • Then the "item" checkbox should not be checked
      • Then the "value" radio button is selected
      • Then the radio button "value" should be selected
    • File Download Steps
    • Form Steps
      • When I fill in
        • When I fill in "field" with "value"
        • When I fill in "field" with "value" by its attribute
        • When I fill in "field" with empty value by its attribute
        • When I fill in "value" for "field" by its attribute
        • When I fill in the following: by its attribute
        • When I fill in "value" for "field"
        • When I fill in "field" with:
          • When I fill in "field" with empty value by its attribute
        • When I fill in the following:
      • When I check "checkbox"
      • When I uncheck "checkbox"
      • When I select "option" from "select list"
        • When I select "option" from "select list" by attribute
      • When I select radio button "value"
    • Iframe Steps
    • Input Steps
    • JavaScript Steps
    • Keyboard Steps
    • Link Steps
      • Then the "item" link should contain "url"
    • Meta Tag Steps
    • Modal Steps
    • Navigation Steps
      • Given I am on homepage
      • Given I am on "specific" page
      • When I go to the homepage
      • Given I am an anonymous user
      • When I go to "specific page"
      • When I reload the page
      • When I move backward one page
      • When I move forward one page
      • Then I should be
        • Then I should be on (the) homepage
        • Then I should not be on (the) homepage
        • Then I should be on "specific page"
        • Then I should not be on "specific page"
    • Network Steps
    • Path Steps
    • REST Steps
    • Response Steps
    • Responsive Steps
    • Screenshot Steps
      • Then I save "width" x "height" screenshot
      • Then I save fullscreen "width" x "height" screenshot
      • Then I save fullscreen screenshot
      • Then I save screenshot
      • Then I save screenshot with name "filename"
      • When I save "width" x "height" screenshot
      • When I save fullscreen "width" x "height" screenshot
      • When I save fullscreen screenshot
      • When I save screenshot
      • When I save screenshot with name "filename"
    • Scroll Steps
      • When I scroll
        • When I scroll down
        • When I scroll up
        • When I scroll to top
        • When I scroll to the bottom
        • When I scroll to top of "<selector>"
        • When I scroll to bottom of "<selector>"
        • When I scroll right
        • When I scroll left
        • When I scroll to start
        • When I scroll to the end
        • When I scroll to start of "<selector>"
        • When I scroll to end of "<selector>"
    • Selector Steps
      • Given I am viewing the site on a "quoted" "bare"
      • Given I define css selectors: "dataTable"
      • Given I define xpath selectors: "dataTable"
      • Then "subjectText" has focus
      • Then I don't see "subjectsText"
      • Then I print css selectors
      • Then I print xpath selectors
      • Then I see "subject" above "others"
      • Then I see "subject" below "others"
      • Then I see "subject" not over "others"
      • Then I see "subject" outside of "others"
      • Then I see "subject" over "others"
      • Then I see "subject‎" inside of "others‎"
      • Then I see "subject‎" to the left of "others‎"
      • Then I see "subject‎" to the right of "others‎"
      • Then I see visible "subjectsText"
      • When I add "selectorName" selector for "cssSelector" css selector
      • When I add "selectorName" selector for "xpathSelector" xpath selector
      • When I click "subjectsText"
      • When I move focus to "fieldLabel" field
      • When I select "selectedText" text in "fieldLabel" field
      • When I select all text in "fieldLabel" field
      • When I select from "fromNum" to "toNum" text in "fieldLabel" field
    • Storage Steps
    • Table Steps
    • Video Steps
    • Wait Steps
      • When I wait
        • When I wait until the page loaded
        • When I wait {number} seconds
        • When I wait max of {number} seconds
        • When I wait {number} minutes
        • When I wait max of number minutes
      • When I wait for AJAX to finish
    • Web First Steps
    • XML Steps
    • YAML Steps
  • Diffy Steps
    • When I resize window to "1200"
    • Then I take screenshot
    • Then I take screenshots for all breakpoints
    • Then send screenshots to diffy with name "baseline"
    • Then create diffy comparison
    • Then create diffy comparison with name "release-2.0"
    • Then create diffy screenshot from "production" environment
    • Then compare diffy "prod" with "stage"
    • Then upload folder "./screenshots/baseline" to diffy as "baseline"
    • Then wait for diffy comparison to complete
  • Drupal Core Steps
    • Then I should be denied access to "/admin/people"
    • Then I should be allowed access to "/admin/content"
    • Then the page should be access restricted
    • Then I should be able to edit the content at "/sample-article"
    • Then the page should not have PHP errors
    • Then the "Article" content type should exist
    • When I save the content
    • Then the "Title" field should block submission as required
    • Then the content moderation state should be "Draft"
    • When I change the moderation state to "Published"
    • Given I am on the login page
    • Then I should see the login form
    • Then the site should be running Drupal
    • Then the core JavaScript settings should be initialized
    • Then I should be on the front page
    • Then I should be on an admin page
    • Then I should see the toolbar
    • Then I should see the navigation sidebar
    • Then I should see the breadcrumb
    • Then I should see the local tasks
    • Then I should see the page title "Log in"
    • Then I should see a status message
    • Then I should see a warning message
    • Then I should see an error message
    • Then I should be on an "article" page
    • When I create an "article" content item titled "Release notes"
    • Then I should see an empty listing
    • When I log in as "admin" with password "admin"
    • Then I should be logged in
    • When I log out
    • When I request a new password for "admin"
    • When I search for "webship"
    • Then I should see search results
    • When I submit the contact form with subject "Question" and message "Hello there"
    • Then I should be on the access denied page
    • Then the page should be served from the page cache
    • Given I am a logged in user with the "admin" user
    • Given I am not logged in
    • Then the page should return HTTP status 200
    • Then I should see the "Edit" operation for the "Sample article" content
    • When I open the "Edit" link in the "Sample article" row
    • Then "Home" should be in the breadcrumb
    • Then the checkbox labeled "Published" should be checked
    • Then I should see an image with the "Sample image alt text" alt text
    • When I fill in the rich text editor field "Body" with "Hello from the suite"
    • When I append the rich text editor field "Body" with "<p>One more paragraph</p>"
    • When I click on "Bold" command button in the rich text editor field "Body"
    • When I open the "field_media" media library
    • When I select the media "Sample image"
    • When I insert the selected media
    • Given I am adding an "article"
    • Then the content item should be published
    • When I delete the content item I am viewing
    • When I flush all caches
    • When I submit by id "edit-submit"
    • When I expand the "Menu settings" details
    • When I open the "Promotion options" vertical tab
    • When I wait for the AJAX throbber to disappear
    • When I confirm the deletion
    • When I fill in the link URL "https://example.com"
    • When I choose the "Sample article" autocomplete suggestion
    • Then the rich text editor field "Body" should contain "Hello"
    • Then the rich text editor toolbar should have the "Bold" button
    • When I view the content item I created
    • When I edit the content item I created
    • When I delete the content item I created
    • When I create a "tags" taxonomy term named "Playwright"
    • When I add a menu link titled "Sample" to "/sample-article" in the "main" menu
    • When I open the layout of the content item I am viewing
    • When I add a "Two column" section at the end of the layout
    • When I save the section
    • When I save the layout
    • Then the layout should have 1 section
    • When I revert the layout to the default
    • Then the navigation toolbar should list "Content"
    • When I click "Content" in the navigation toolbar
    • When I open the top bar page actions
    • Then the top bar should offer the "Edit" action
    • When I choose the "Edit" action in the top bar
    • Then the "node" module should be installed
    • Then the default theme should be "Olivero"
    • Given I am on the default theme settings page
    • Then the "Content editor" role should exist
    • Then the "Main navigation" menu should contain "Home"
    • Then the front page path should be "/node"
    • Then the page should have the canonical URL "/sample-article"
    • Then the "description" meta tag should contain "Sample"
    • Given I add the testing users
    • Given I delete the testing users
  • Drupal CMS Steps
    • Given a new Canvas page "Landing" at "/landing"
    • When I create a Canvas page "Welcome" at "/welcome" with the "sdc.mercury.heading" component:
    • When I create a Canvas page "Promo" at "/promo" with the "Hero CTA" component
    • When I add the "Heading" component to the bottom of the "Landing" Canvas page and publish it:
    • When I add the "Text" component to the bottom of the "Landing" Canvas page
    • When I publish the Canvas page changes
    • When I delete the "Landing" Canvas page
    • When I visit the "Home" Canvas page
    • Then the "Home" Canvas page should exist
    • Then the Canvas component library should list the "Heading" component
    • When I open the "Home" Canvas page in the editor
    • Then I should see the Canvas editor
    • When I open the "Components" tab in the Canvas Library
    • Then the Canvas Library "Components" tab should list "Heading"
    • When I insert the "Heading" component from the Canvas Library
    • When I set the Canvas component option "Heading" to "Welcome"
    • When I publish the Canvas page changes through the editor
    • When I filter the Canvas Library by "Heading"
    • Then the "Landing" Canvas page should have 1 component
    • Then I should see the cookie consent dialog
    • When I accept the cookie consent
    • Given the cookie consent is not given yet
    • When I log in with the email address of "content editor"
    • Given I am on the dashboard
    • Then I should see the dashboard
    • Then I should see the "Recent content" dashboard section
    • When I open the moderation sidebar
    • Then the moderation sidebar should show "Draft"
    • Given the site template is "drupal_cms_starter"
    • Given the "drupal_cms_forms" recipe is applied
    • Then the site template should be "drupal_cms_starter"
    • Then the site should have at least 1 Canvas page
  • WordPress Steps
    • Then I should see the site title
    • Given I am on a page
    • Given I am on a post
    • Given I am on a category archive
    • Then I should see the post title
    • Then I should see post entries
    • When I search the site for "hello world"
    • When I search the site for existing content
    • Then I should see search results for "hello world"
    • Given I am on the login page
    • Then I should see the login form
    • Then I should see a login error
    • When I log in as "admin" with password "secret"
    • Given I am a logged in user with the username "admin"
    • Given I am not logged in
    • Then I should see the admin bar
    • Then I should see the comment form
  • Odoo Steps
    • Then I should be on an Odoo website page
    • Then I should see the Odoo top menu
    • Then I should see the Odoo footer
    • Then I should be on the Odoo blog page
    • Then I should be on an Odoo blog post page
    • Then I should see the Odoo blog post titled "Customer Reviews"
    • Then I should be on the Odoo shop page
    • Then I should be on an Odoo product page
    • When I open the first product in the Odoo shop
    • When I search the Odoo shop for "mug"
    • Then I should see Odoo shop search results for "mug"
    • When I add the product to the Odoo cart
    • Then I should see "1" item in the Odoo cart
    • Then I should be on the Odoo events page
    • Then I should be on the Odoo jobs page
    • Then I should see Odoo job openings
    • Given I am on the Odoo contact us page
    • Then I should see the Odoo contact us form
    • Given I am on the Odoo login page
    • Then I should see the Odoo login form
    • When I log in to Odoo as "admin" with password "secret"
    • Given I am a logged in user with the "admin" user
    • Given I am not logged in
    • Then I should see an Odoo login error
    • Then I should be on the Odoo 404 page
  • Joomla Steps
    • Given I am on the administrator login page
    • When I log in to the administrator panel as "admin" with password "admin"
    • Given I am a logged in user with the "admin" user
    • Given I am not logged in
    • When I log out of the administrator panel
    • Then I should see the administrator dashboard
    • Then I should see an invalid login error in the administrator panel
    • Then I should be on the administrator login page
    • When I open the "Blog" menu item
    • When I open the mobile menu
    • Then I should see the "Blog" menu item
    • When I read more of "Joomla"
    • Then I should be viewing the "Joomla" article
    • Then the breadcrumb should show "Home > Blog"
    • When I search the site for "joomla"
    • When I search the site for a word from the first article
    • Then I should see that word in the search results
    • Then I should see no search results
    • Then I should see "Joomla" in the search results
  • TYPO3 Steps
    • When I open the "Features" menu item
    • Then I should see the "Features" menu item
    • When I open the mega menu
    • When I open the "Accordion" dropdown link
    • Then I should see the "Accordion" dropdown link
    • Then I should be viewing the "Accordions" page
    • When I open the "Media Left" accordion panel
    • Then I should see "short video" in the "Media Left" accordion panel
  • django CMS Steps
    • Given I am a logged in user with the "admin" user
    • Given I am not logged in
    • When I log out
    • Then I should see the CMS toolbar
    • When I click "Pages" in the CMS toolbar menu
    • Then the CMS sideframe should be showing "/admin/cms/pagecontent/"
    • Given I am on the django CMS page tree
    • Then I should see the page tree
    • Then I should see "Home" in the page tree
    • Then I should see the django CMS welcome screen
  • Gatsby Steps
    • Then I should see a hydrated page
    • Then I should see an optimized image
    • When I click the link "About" without a full page reload
    • Then the page-data for "/" should be available
    • Then I should be on the default 404 page
    • Then the page title should be "Home Page"
  • Astro Steps
    • Then I should see the Astro generator meta tag
    • Then the page should be generated by Astro version "7"
    • Then the page title should end with "| Astro Steps Demo"
    • Then I should see a navigation menu with the following links:
    • Then all navigation links should resolve successfully
  • Webflow Steps
    • Then I should see the webflow navigation menu
    • When I open the mobile menu
    • When I close the mobile menu
    • Then the mobile menu should be open
    • Then the "Home" navigation link should be the current page
    • Then I should see 3 items in the "features" collection list
    • Then the "features" collection list should not be empty
    • Then I should see the webflow form success message
    • Then I should see the webflow form error message
    • When I submit the webflow form
    • Then this should be a webflow page
  • HubSpot CMS Steps
    • Then the page should be a HubSpot page
    • When I accept the HubSpot cookie banner
    • When I decline the HubSpot cookie banner
    • Then the HubSpot cookie banner should be visible
    • When I fill in the HubSpot form field "email" with "jane@example.com"
    • When I submit the HubSpot form
    • Then the HubSpot form should show a success message
    • When I click the HubSpot CTA "See Pricing"
    • Then the HubSpot CTA "See Pricing" should link to "/pricing.html"
    • Then the HubSpot menu should have a link labeled "Pricing"
    • Then the HubSpot blog should list at least 1 post
    • When I open the HubSpot blog post titled "Why BDD testing matters for marketing sites"
  • Squarespace Steps
    • Then the site navigation should contain "Shop"
    • Then "Home" should be the current navigation item
    • When I open the mobile navigation menu
    • Then the mobile navigation toggle should be visible
    • Then the desktop navigation should be visible
    • Then the hero title should be "Handmade goods, honestly sourced."
    • Then the hero call-to-action button should link to "/shop.html"
    • Then the site footer should be visible
    • Then the footer should show a copyright notice
    • Then the footer navigation should contain "Shop"
    • When I fill in the Squarespace form field "Name" with "Jane Doe"
    • When I submit the Squarespace form
    • Then the Squarespace form should show the submitted confirmation
    • Then the shop should list 3 products
    • When I add the product "Ceramic Mug" to the cart
    • Then the cart should contain 1 item
    • Then the blog should list 2 posts
    • Then the blog post "Why we use linen instead of canvas" should be visible

Breadcrumb

  1. Home
  2. Documentation
  3. WordPress Steps

Given I am on a page

Navigate to a real published page, discovered at runtime.

Examples

Given I am on a page
Given we are on a static page
And on a page
Given we are on a page
And I am on a static page

Pattern

Given(/^(I am |we are )*on a (?:static )?page$/, …)

Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.

Book traversal links for Documentation

  • Previous Then I should see the site title
  • Up
  • Next Given I am on a post

Boost your site's success with automated testing

For Commercial Professional Support

Contact Us

On this page

    Type to find a page. Enter opens the selected page; with nothing selected, Enter searches the whole site.

    Daily Automated Functional Acceptance Testing   

    © Copyrights 2022 - 2026 Webship.co All Rights Reserved.

    Webtheme Footer

    • Privacy
    • About us
    • Contact

    Home

    Webtheme social media menu

    • Github
    • Gitlab
    • Bitbucket
    • X
    • Linkedin
    • Youtube