We won the award for Best Tutorial.
We prepared a shed load of material, just in case no-one asked any questions.
Fortunately people did ask questions and the tutorial organised itself around the questions people had. We mostly managed to cover all the material we had. We didn’t get around to covering Page Object models in much depth and I don’t think we really covered domain models.
Fortunately, we released all the source code we produced in preparation on github, including the Page Object models and Domain Object models.
I used a subset of slides pulled from my Online WebDriver course as the clinic handouts because the slides on this course act as pretty good reference material.
A few interesting things to note when you look through the clinic code:
- Simon packaged up the necessary jars individually in the repo. I tend to just include selenium-server-standalone-xxx.jar so I found it a learning experience to see what he included.
- The code has a good mix of static and non-static includes of ExpectedConditions.
- Some usage of Hamcrest matchers to illustrate making the code literate
- Simon created a custom By method which I hadn’t had to do before so I enjoyed learning that.
- Creating custom ExpectedConditions
- Also compare the style differences in the tests between using Page Objects and Domain Objects