org.jbehave.web.selenium.SeleniumContextView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbehave-web-selenium Show documentation
Show all versions of jbehave-web-selenium Show documentation
Selenium and WebDriver API bindings for JBehave
The newest version!
package org.jbehave.web.selenium;
import com.thoughtworks.selenium.Selenium;
/**
* Selenium-based ContextView, that delegates to the
* {@link Selenium#setContext(String)}.
*/
public class SeleniumContextView implements ContextView {
private Selenium selenium;
public SeleniumContextView(Selenium selenium) {
this.selenium = selenium;
}
public void show(String scenario, String step) {
selenium.setContext(scenario + "
" + step);
}
public void close() {
// do nothing, view is controlled by Selenium Server
}
}