Skip to content

krosenvold/webdriver-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A diagnostics proxy for webdriver

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages