org.jbehave.web.selenium
Class SeleniumPerScenarioSteps

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

public abstract class SeleniumPerScenarioSteps
extends AbstractSeleniumSteps

Steps implementation that can be used in Selenium-based scenarios. It provides annotated methods to start and stop Selenium before and after scenarios. 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
SeleniumPerScenarioSteps()
           
SeleniumPerScenarioSteps(com.thoughtworks.selenium.Selenium selenium)
           
SeleniumPerScenarioSteps(SeleniumStepsConfiguration configuration)
           
SeleniumPerScenarioSteps(org.jbehave.core.steps.StepsConfiguration configuration)
           
 
Method Summary
 void afterScenario()
           
 void beforeScenario()
           
 
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

SeleniumPerScenarioSteps

public SeleniumPerScenarioSteps()

SeleniumPerScenarioSteps

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

SeleniumPerScenarioSteps

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

SeleniumPerScenarioSteps

public SeleniumPerScenarioSteps(SeleniumStepsConfiguration configuration)
Method Detail

beforeScenario

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

afterScenario

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


Copyright © 2010. All Rights Reserved.