Automated Testing of Contact Info Using Webship-js

webshipcowebshipco
2 min read

The 'Contact Us' page on a website might seem small, but it’s very important. It's where people go to ask questions, give feedback, or get help. Having this page helps businesses appear approachable and trustworthy. However, it’s not just about having the page; the information on it needs to be accurate. Incorrect or outdated details can frustrate users and lead to missed opportunities. Therefore, keeping your 'Contact Us' page accurate is crucial for building good relationships with customers and supporting your business's growth.

In this blog, we’ll demonstrate how to perform automated functional testing for the Contact Info section of a website, using the World Bank Group site https://www.worldbank.org as our example.

We need step definitions to create the scenarios required for testing, such as:

Then I should see

This step is useful for verifying that certain elements or messages are displayed correctly on a webpage or application, ensuring that the expected content is visible to the user or the automated tests.

Then I should see "text in the page"

This step definition is used to be sure that the text specified exists on the current page

Example:

Then I should see "Welcome"

You can see more step definitions used Then I should see

You can see more step definitions: https://webship.co/docs

See all the blog : https://webship.co/blog/automated-testing-contact-info-using-webship-js

Watch the recorded video of the robot while running the automated functional testing feature

https://www.youtube.com/watch?v=BwGf46XRpsQ

1
Subscribe to my newsletter

Read articles from webshipco directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

webshipco
webshipco

Love to help in speeding up the work of having Automated Functional Acceptance Testing for products to ship websites in a swift way.