A diagnostics proxy for webdriver
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
pom.xml
readme.md

readme.md

Build using "mvn install"

Add to your project using:

       <dependency>
          <groupId>org.rosenvold.webdriver</groupId>
          <artifactId>webdriver-profiler</artifactId>
          <version>0.9</version>
      </dependency>

Or just get the jar file from the target folder if you're using a lesser build system ;)

Using:

    WebDriver webDriver = .. Instantiate your faviourite webdriver ...;
    ProfilerFactory profilerFactory = new ProfilerFactory("perfLog");  // <number>.txt is appended
    webDriver = profilerFactory.createProxy( webDriver);

    ....     run tests ....

    profilerFactory.close();

Use as normally. Full event is recorded to "perfLog0.txt" in this example. The profiler records the log when the close method is called on the factory or 5 seconds after the last browser is called (assuming the process lives that long, which I'd normally only guarantee on selenium-server !).

The profilerfactory is thread-safe and createProxy can be run multiple times for each WebDriver instance you wish to proxy