Selenium WebDriver : Generating IEDriverServer logs

Selenium 2 (WebDriver) uses Windows executable file IEDriverServer.exe to communicate with InternetExplorer. In the event of any issues with IEDriverServer.exe, logs should be generated for the executable. In Java one can use following code to generate log file from IEDriverServer.exe.

    InternetExplorerDriverService.Builder service =
        new InternetExplorerDriverService.Builder();
        service = service.withLogLevel(InternetExplorerDriverLogLevel.TRACE);
        service = service.withLogFile(new File("c:\\logs\\selenium.log"));
        WebDriver driver = new InternetExplorerDriver(;

This generates logs with log level of TRACE and is saved to file at path C:\logs\selenium.log


Popular posts from this blog

java.util.logging - Bad level value for property: org.openqa.level

Downloading source code from SVN/Git repository over HTTP

Suppressing JExcel warnings