All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.hsac.fitnesse.fixture.util.selenium.StaleContextException Maven / Gradle / Ivy

There is a newer version: 5.3.17
Show newest version
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