File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11package manytools ;
22
33import aquality .selenium .browser .AqualityServices ;
4+ import aquality .selenium .core .utilities .IActionRetrier ;
45import aquality .selenium .elements .interfaces .ILabel ;
56import aquality .selenium .forms .Form ;
67import org .openqa .selenium .By ;
8+ import org .openqa .selenium .TimeoutException ;
9+
10+ import java .util .Collections ;
711
812public abstract class ManyToolsForm <T extends ManyToolsForm <T >> extends Form {
913 private static final String BASE_URL = "https://manytools.org/" ;
@@ -17,8 +21,10 @@ protected ManyToolsForm(String name) {
1721
1822 @ SuppressWarnings ("unchecked" )
1923 public T open () {
20- AqualityServices .getBrowser ().goTo (BASE_URL + getUrlPart ());
21- AqualityServices .getBrowser ().waitForPageToLoad ();
24+ AqualityServices .get (IActionRetrier .class ).doWithRetry (() -> {
25+ AqualityServices .getBrowser ().goTo (BASE_URL + getUrlPart ());
26+ AqualityServices .getBrowser ().waitForPageToLoad ();
27+ }, Collections .singletonList (TimeoutException .class ));
2228 return (T ) this ;
2329 }
2430
You can’t perform that action at this time.
0 commit comments