Skip to content

niky588/simplelenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplelenium

A simple and robust layer on top of Selenium and PhantomJS.

Build status

Build Status

Maven

<dependency>
  <groupId>net.code-story</groupId>
  <artifactId>simplelenium</artifactId>
  <version>1.10</version>
</dependency>

Release

mvn release:clean release:prepare release:perform

Samples

goTo("/unknown");

find("#name").fill("Name");
find("#age").clear();
find("#form").submit();

find("h1").should().contain("Page not found");
find("#level1").click();
find("#errors").should().contain("Errors for level 1");
find("#successes").should().contain("Successes for level 1");

find("#level2").click();
find("#errors").should().contain("Errors for level 2");
find("#errors").should().not().contain("Errors for level 3");
find("#successes").should().contain("Successes for level 2");
goTo("/auth/signout");

find("#login").fill("john");
find("#password").fill("pwd");
find("#signin").submit();

goTo(url);

TODO

  • Clean up code
  • Clean up dependencies
  • Support more actions
  • Support more assertions

About

Simple layer on top of Selenium and PhantomJs

Resources

License

Stars

Watchers

Forks

Packages

No packages published