Web Testing Box: Selenium WebDriver best practices project.
This project shows Selenium WebDriver best practices; it is a minimalistic Selenium project that makes Selenium tools easy to learn and use, and it gets the job done.
It is currently written in Java. You are welcome to fork to other languages.
The project goal is to show each of the following best practices in 10 minues:
- WebDriver Wait: ImplicitWaits, WebDriverWait, and Ajax wait
- PageObject
- Use CSS selector
- Behavior Driven testing
Wish lists: Here are the tools I would like to add
- HTML5_Tool: helps to navigate, drag and drop, tests (events, json, data), and work with 3rd party JavaScript Unit testing library (such as Qunit).
- Excel tool for reading and writing testcases
- Take screenshot tool for errors
- File tool for reading the test setting properties.
-
Show and teach a lesson in 10 minutes (simple and effective)
-
Easy to learn and use – so even a tester with little programming background can use it (Java is a good language for web development, but it is not the popular web development solution compare to php or ruby. Because most Java web solutions are towards for enterprise applications (humongous, and require steep learning curve to learn).
However our testing project is for an average tester not for a developer. So, let’s make easy, less technical but more practical for testing job done.) -
For advanced topics: just provide information links in the further reading section.
Inspired by the following projects:
Ben Burton’s WebDriver presentation |
Mark Collin's Wait Method |
Dave Justin’s page object post |
James Cox's Using Page Objects |