com.nordstrom.automation.selenium.support.RetryAnalyzer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-foundation Show documentation
Show all versions of selenium-foundation Show documentation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
package com.nordstrom.automation.selenium.support;
import org.openqa.selenium.WebDriverException;
import org.testng.ITestResult;
import com.nordstrom.automation.testng.RetryManager;
public class RetryAnalyzer extends RetryManager {
@Override
protected boolean isRetriable(ITestResult result) {
if (result.getThrowable() instanceof WebDriverException) {
return true;
}
return super.isRetriable(result);
}
}