mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
adjusted wait to be more robust
This commit is contained in:
1 parent
eebf9ab16c
commit
87fe196565
1 file changed
+4
-1
+4
-1
@@ -47,7 +47,10 @@ public class RaceBoardPage extends HostPageWithAuthentication {
|
||||
|
||||
@Override
|
||||
public boolean getAsBoolean() {
|
||||
return context.findElement(new BySeleniumId("raceMapSettings")) != null;
|
||||
WebElement settingsDialog = context.findElement(new BySeleniumId("raceMapSettings"));
|
||||
boolean exists = settingsDialog != null;
|
||||
// exists, and was actually rendered (to apply the values)
|
||||
return (exists && settingsDialog.getSize().height > 50);
|
||||
}
|
||||
});
|
||||
return new MapSettingsPO(driver, context.findElement(new BySeleniumId("raceMapSettings")));
|
||||
|
||||
Reference in new issue
Block a user