nl.hsac.fitnesse.fixture.util.selenium.StaleContextException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsac-fitnesse-fixtures Show documentation
Show all versions of hsac-fitnesse-fixtures Show documentation
Fixtures to assist in testing via FitNesse
package nl.hsac.fitnesse.fixture.util.selenium;
import org.openqa.selenium.SearchContext;
/**
* Exception thrown when current context in {@link SeleniumHelper} is no longer usable.
*/
public class StaleContextException extends RuntimeException {
private final SearchContext searchContext;
public StaleContextException(SearchContext context) {
super("Search context is 'stale' and cannot be used to find elements. Context is: " + context);
searchContext = context;
}
/**
* @return 'stale' context encountered.
*/
public SearchContext getSearchContext() {
return searchContext;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy