Updated selenium test, added clickAndWait instead of waitForPageToLoad