changing how the page is waited for testing