Move the xhr mocking into the page object