Attempted port from selenium-tests to Java