1718192021222324
public Throwable convertToAssertion() { if (RuntimeException.class.isAssignableFrom(throwable.getClass())) { return throwable; } else { return new WebdriverAssertionError(throwable); } }