Posts

Showing posts from September, 2013

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(service.build());

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