Robot Framework code for automating the testing of the IMDb website's search feature. The tests aim to verify if the user can search for movies released in a specific year.
To run the automated tests, make sure you have the following installed:
- Robot Framework
- SeleniumLibrary
The test scenario, Scenario3
, is designed to perform the following steps:
- Given that the user is on the IMDb homepage "https://www.imdb.com/"
- When the user clicks on the "Advanced Search" link in the search bar filter
- The user would then be redirected to a page containing “Advanced Title Search” link, which he should click.
- And selects "Feature Film" as title type.
- And selects the “Action” genre from Genres.
- And enters a start year and end year in the "Release Date" fields (2010 - 2020).
- Enter a start year and end year (2010 - 2020) in the "Release Date" fields.
- And clicks the "Search" button
- Then the search results page should display a list of Action movies released between 2010 and 2020, sorted by User Rating (Higher ratings appear first, i.e. descendingly).