Webdriver debugging mode?

May 12, 2015 at 11:15 AM
Hi,

Is there way to enable webdriver to run in debug mode providing some logs?

It often happens, during my java selenium test suite execution, webdriver app to close by itself and i cannot find the reason. It happens at random places. All I see in my logs is "org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died."

Kind regards,
Bozhko
Coordinator
May 12, 2015 at 11:53 AM
I have also hit the same issue myself and it seems like there isn't always a way to get proper errors out from the WebBrowser control that the project uses.

I have also identified that there is some memory leaks so that in case of long tests, the app's memory usage may grow to a point where it can't run anymore and the system shuts it down.

One way to debug a specific test case is to use http://blogs.msdn.com/b/visualstudioalm/archive/2014/04/04/diagnosing-mobile-website-issues-on-windows-phone-8-1-with-visual-studio.aspx . This requires that you are able to open the problematic page and run the test case in the browser environment.