What should be done

For this task, please, use:

  • the Selenium WebDriver power,
  • framework unit test, and
  • Page Object concepts.

Automate the following script:

  1. Open https://pastebin.com/ or a similar service in any browser.

  2. Create 'New Paste' with the following attributes:

    • Code: git config --global user.name "New Sheriff in Town" git reset $(git commit-tree HEAD^{tree} -m "Legacy code") git push origin master --force
    • Syntax Highlighting: "Bash"
    • Paste Expiration: "10 Minutes"
    • Paste Name / Title: "how to gain dominance among developers"
  3. Save 'paste' and check the following:

    • Browser page title matches 'Paste Name / Title'
    • Syntax is suspended for bash
    • Check that the code matches the one from paragraph 2.


Criteria for successful completion Rate
1. The project is set up. All required dependencies are set with the build tool (e.g., pom.xml for maven). 20%
2. Script is written based on the provided scenario. 40%
3. Code is written in a well-structured manner. All best practices are followed. Code is easy to read and maintain. 10%
4. Script is stabilized. No intermittent failures during the run. It passes during 5 subsequent runs. 30%


Good luck!