public class SeleniumTest {
public static void main(String[] args) throws Exception {
/* It's up to you to control iterations programatically. */
while( iterations < 100 ) {
} catch (WebDriverException e) {
String[] lines = e.getMessage().split("\\r?\\n");
System.err.println("Webdriver exception: " + lines[0]);
flood.failed_transaction(driver);
} catch(InterruptedException e) {
Thread.currentThread().interrupt();
String[] lines = e.getMessage().split("\\r?\\n");
System.err.println("Browser terminated early: " + lines[0]);
String[] lines = e.getMessage().split("\\r?\\n");
System.err.println("Other exception: " + lines[0]);