For the following challenge, the page http://the-internet.herokuapp.com/ will be used. Java, Maven, and Selenium should be used, as well as a testing library (TestNg is recommended). The code should be uploaded to a Git repository for proper validation.
Read this in other languages: pt-br.
The following criteria will be evaluated:
- Project structure (pageObjects, pageTasks); ✔️
- Object-oriented programming; ✔️
- Code indentation and clarity; ✔️
- Correct use of Java patterns will be evaluated (camel case). ✔️
- Access the page: http://the-internet.herokuapp.com/;
- Access the "Add/Remove Elements" link;
- Click on the "Add Element" button;
- Validate if the label of the created button is "Delete".
- Extra: Add a message in the assert statement informing that the text is incorrect. ✔️
This challenge aims to verify if the candidate knows how to use the "Select" class.
- Access the page: http://the-internet.herokuapp.com/;
- Access the "Dropdown" link;
- Select option 2.
- Access the page: http://the-internet.herokuapp.com/;
- Access the "Key Presses" link;
- Enter a text;
- Validate that the system returns the last keystroke entered in the label that is located just below.
- Extra: Add a dynamic validation using String manipulation, so that the test works with any text entered. (example: write "test" and the system should return "You entered: T"; write selenium and the system return "You entered: M". ✔️