Menu

LoggingSelenium for Selenium2

hanuk
2011-08-09
2013-05-14
  • hanuk

    hanuk - 2011-08-09

    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);

     
  • Anonymous

    Anonymous - 2012-03-22

    Hi Hanuk,

    did you get any solution

     
  • Anonymous

    Anonymous - 2012-11-14

    Guys,
    anyone get any solution to use this library to work with webdriver or selenium 2?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.