Hi,
Has anybody implemented logging selenium with Selenium2 (Webdriver).I tried doing this by creating a LoggingCommandProcessor instance and assigning it to Webdriver's inherited field commandProcessor. But I just get a empty Log file.Help Please
driver = new RemoteWebDriver(new URL("http://<servername>:4444/wd/hub"),DesiredCapabilities.firefox());
LoggingCommandProcessor myProcessor =
new LoggingCommandProcessor(new HttpCommandProcessor(<servername>, 4444, *firefox, <URL>), htmlFormatter);
selenium = new WebDriverBackedSelenium(driver, <URL>);
Field f= selenium.getClass().getSuperclass().getDeclaredField("commandProcessor");
f.setAccessible(true);
f.set(selenium, myProcessor);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-03-22
Hi Hanuk,
did you get any solution
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-11-14
Guys,
anyone get any solution to use this library to work with webdriver or selenium 2?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Has anybody implemented logging selenium with Selenium2 (Webdriver).I tried doing this by creating a LoggingCommandProcessor instance and assigning it to Webdriver's inherited field commandProcessor. But I just get a empty Log file.Help Please
driver = new RemoteWebDriver(new URL("http://<servername>:4444/wd/hub"),DesiredCapabilities.firefox());
LoggingCommandProcessor myProcessor =
new LoggingCommandProcessor(new HttpCommandProcessor(<servername>, 4444, *firefox, <URL>), htmlFormatter);
selenium = new WebDriverBackedSelenium(driver, <URL>);
Field f= selenium.getClass().getSuperclass().getDeclaredField("commandProcessor");
f.setAccessible(true);
f.set(selenium, myProcessor);
Hi Hanuk,
did you get any solution
Guys,
anyone get any solution to use this library to work with webdriver or selenium 2?