org.fluentlenium.adapter.IsolatedTest Maven / Gradle / Ivy
package org.fluentlenium.adapter;
/**
* Instead of extending FluentTest, you can instantiate this class directly.
*
* If you want to test concurrency, or if you need for any reason to not use JUnit nor TestNG, you may use this class.
*
* You should call {@link #quit()} manually to close the underlying webdriver.
*/
public class IsolatedTest extends FluentAdapter {
public IsolatedTest() {
initFluent(newWebDriver());
}
public void quit() {
if (getDriver() != null) {
getDriver().quit();
}
releaseFluent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy