adjusted wait to be more robust

This commit is contained in:
Kai Boernert committed 2017-01-18 09:02:46 +01:00
1 parent eebf9ab16c
commit 87fe196565
1 file changed
+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")));