selenium-python-pytest-bdd/features/home_page.feature

69 lines
2.7 KiB
Gherkin

Feature: Home Page
Tests for the 'https://the-internet.herokuapp.com/' home page
Background: Open home page
Given I have navigated to the 'the-internet' "home" page
@focus
Scenario: Verify home page contents are correct
Then the page title is "Welcome to the-internet"
And the sub-header text is "Available Examples"
And a list of the following sub-pages is displayed
| name |
| A/B Testing |
| Add/Remove Elements |
| Basic Auth |
| Broken Images |
| Challenging DOM |
| Checkboxes |
| Context Menu |
| Digest Authentication |
| Disappearing Elements |
| Drag and Drop |
| Dropdown |
| Dynamic Content |
| Dynamic Controls |
| Dynamic Loading |
| Entry Ad |
| Exit Intent |
| File Download |
| File Upload |
| Floating Menu |
| Forgot Password |
| Form Authentication |
| Frames |
| Geolocation |
| Horizontal Slider |
| Hovers |
| Infinite Scroll |
| Inputs |
| JQuery UI Menus |
| JavaScript Alerts |
| JavaScript onload event error |
| Key Presses |
| Large & Deep DOM |
| Multiple Windows |
| Nested Frames |
| Notification Messages |
| Redirect Link |
| Secure File Download |
| Shadow DOM |
| Shifting Content |
| Slow Resources |
| Sortable Data Tables |
| Status Codes |
| Typos |
| WYSIWYG Editor |
And a "Fork me on GitHub" banner is displayed in the top-right corner of the page
And the page has a footer containing "Powered by Elemental Selenium"
And the link in the page footer goes to "http://elementalselenium.com/"
# Scenario Outline: Open <page> page
# When I click on the "<page>" link
# Then the "<page>" page opens
# Examples:
# | page |
# | Checkboxes |
# | Dropdown |
# | Dynamic Controls |
# | Form Authentication |
# | Inputs |