A Pycon Canada last weekend I did a 20 minute talk on WebDriver. You can play along with the code. My usual jokes, etc.
- Use Page Objects! – There are a lot of examples (even in Python). This repo has one take on the pattern, but there are lots of other ones. Explore to find the that resonates most with you. And hen adapt it to your own needs.
- Proxy all the things – A good idea is to run your automation through a scriptable proxy to be able to do things like blacklist Facebook and Twitter integrations (and thus drastically improve the speed of your app)