Refactored this a bit to add in a PageFactory version of the test