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 1
1
package manytools ;
2
2
3
3
import aquality .selenium .browser .AqualityServices ;
4
+ import aquality .selenium .core .utilities .IActionRetrier ;
4
5
import aquality .selenium .elements .interfaces .ILabel ;
5
6
import aquality .selenium .forms .Form ;
6
7
import org .openqa .selenium .By ;
8
+ import org .openqa .selenium .TimeoutException ;
9
+
10
+ import java .util .Collections ;
7
11
8
12
public abstract class ManyToolsForm <T extends ManyToolsForm <T >> extends Form {
9
13
private static final String BASE_URL = "https://manytools.org/" ;
@@ -17,8 +21,10 @@ protected ManyToolsForm(String name) {
17
21
18
22
@ SuppressWarnings ("unchecked" )
19
23
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 ));
22
28
return (T ) this ;
23
29
}
24
30
You can’t perform that action at this time.
0 commit comments