org.jbehave.web.selenium
Class PerStoriesSeleniumSteps
java.lang.Object
org.jbehave.web.selenium.SeleniumSteps
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerStoriesSeleniumSteps
public PerStoriesSeleniumSteps()
PerStoriesSeleniumSteps
public PerStoriesSeleniumSteps(com.thoughtworks.selenium.Selenium selenium)
beforeStories
public void beforeStories()
throws Exception
- Throws:
Exception
afterStories
public void afterStories()
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.