try {
String startURL = "http://localhost:" + configuration.getPortDriversShouldContact() +"/selenium-server/driver/?sessionId=" + sessionId + "&uniqueId=" + uniqueId;
String commandLine = doBrowserRequest(startURL+"&seleniumStart=true&sequenceNumber="+sequenceNumber++, "START");
while (!interrupted) {
log.info("MOCK: " + commandLine);
RemoteCommand sc = DefaultRemoteCommand.parse(commandLine);
String result = doCommand(sc);
if (SeleniumServer.isBrowserSideLogEnabled() && !interrupted) {
for (int i = 0; i < 3; i++) {
doBrowserRequest(startURL + "&logging=true&sequenceNumber="+sequenceNumber++, "logLevel=debug:dummy log message " + i + "\n");
}