org.jbehave.web.selenium
Class SeleniumPerStorySteps

java.lang.Object
  extended by org.jbehave.core.steps.Steps
      extended by org.jbehave.web.selenium.AbstractSeleniumSteps
          extended by org.jbehave.web.selenium.SeleniumPerStorySteps
All Implemented Interfaces:
org.jbehave.core.steps.CandidateSteps

public abstract class SeleniumPerStorySteps
extends AbstractSeleniumSteps

Steps implementation that can be used in Selenium-based scenarios. It provides annotated methods to start and stop Selenium before and after stories. It can also provides defaults for Selenium and ConditionRunner dependencies, which may be overridden by user when providing the implementation of scenario steps.

Author:
Mauro Talevi

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jbehave.core.steps.Steps
org.jbehave.core.steps.Steps.DuplicateCandidateStepFoundException, org.jbehave.core.steps.Steps.SilentStepResult
 
Field Summary
 
Fields inherited from class org.jbehave.web.selenium.AbstractSeleniumSteps
runner, selenium
 
Constructor Summary
SeleniumPerStorySteps()
           
SeleniumPerStorySteps(com.thoughtworks.selenium.Selenium selenium)
           
SeleniumPerStorySteps(SeleniumStepsConfiguration configuration)
           
SeleniumPerStorySteps(org.jbehave.core.steps.StepsConfiguration configuration)
           
 
Method Summary
 void afterStory()
           
 void beforeStory()
           
 
Methods inherited from class org.jbehave.web.selenium.AbstractSeleniumSteps
createConditionRunner, createSelenium, waitFor
 
Methods inherited from class org.jbehave.core.steps.Steps
createCandidateStep, getConfiguration, getSteps, getSteps, runAfterScenario, runAfterStory, runBeforeScenario, runBeforeStory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeleniumPerStorySteps

public SeleniumPerStorySteps()

SeleniumPerStorySteps

public SeleniumPerStorySteps(org.jbehave.core.steps.StepsConfiguration configuration)

SeleniumPerStorySteps

public SeleniumPerStorySteps(com.thoughtworks.selenium.Selenium selenium)

SeleniumPerStorySteps

public SeleniumPerStorySteps(SeleniumStepsConfiguration configuration)
Method Detail

beforeStory

public void beforeStory()
                 throws java.lang.Exception
Throws:
java.lang.Exception

afterStory

public void afterStory()
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.