Introduce Selenium tests for the advanced search interface.

Use SecureRandom when generating unique strings for test data as time and processid was not always unique.

When checking if an element is not present, if it is in the DOM it should be hidden.