Automating tests using page objects