@Rule
public MethodRule logRule = new LoggingTestWatchman(LOG_FILE_WRITER);
@Test
public void testGoogleSearch() {
EventFiringWebDriver driverWithReporting;
{
// System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/chrome");
// WebDriver driver = new ChromeDriver();
WebDriver driver = new FirefoxDriver();
WebDriverEventListener loggingListener = new LoggingWebDriverEventListener(LOG_FILE_WRITER);;
driverWithReporting = new EventFiringWebDriver(driver);
driverWithReporting.register(loggingListener);
}
driverWithReporting.get("http://www.google.com");
WebElement element = driverWithReporting.findElement(By.name("q"));
element.sendKeys("Mifos");
element.submit();
(new WebDriverWait(driverWithReporting, 10))
.until(ExpectedConditions.presenceOfElementLocated(By.id("bfoot")));
driverWithReporting.quit();
}