org.jbehave.web.selenium
Class PerStoriesSeleniumSteps

java.lang.Object
  extended by org.jbehave.web.selenium.SeleniumSteps
      extended by org.jbehave.web.selenium.PerStoriesSeleniumSteps

public class PerStoriesSeleniumSteps
extends SeleniumSteps

Steps implementation that can be used before and after lifecycle in Selenium-based stories. It provides annotated methods to start Selenium before all stories and close/stop Selenum after all stories.

NOTE: using this implementation requires the use of a same-thread ExecutorService to be configured in the Embedder, e.g. Guava's MoreExecutors.sameThreadExecutor(),

Author:
Mauro Talevi

Field Summary
 
Fields inherited from class org.jbehave.web.selenium.SeleniumSteps
runner, selenium
 
Constructor Summary
PerStoriesSeleniumSteps()
           
PerStoriesSeleniumSteps(com.thoughtworks.selenium.Selenium selenium)
           
 
Method Summary
 void afterStories()
           
 void beforeStories()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerStoriesSeleniumSteps

public PerStoriesSeleniumSteps()

PerStoriesSeleniumSteps

public PerStoriesSeleniumSteps(com.thoughtworks.selenium.Selenium selenium)
Method Detail

beforeStories

public void beforeStories()
                   throws Exception
Throws:
Exception

afterStories

public void afterStories()
                  throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.