mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
Fixed the check if simulator overlay is available in RaceMap settings
This commit is contained in:
1 parent
b768b3e2d6
commit
7d6d99667d
1 file changed
+4
-4
+4
-4
@@ -1,5 +1,7 @@
|
||||
package com.sap.sailing.selenium.pages.raceboard;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.openqa.selenium.Alert;
|
||||
import org.openqa.selenium.NoAlertPresentException;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
@@ -16,9 +18,6 @@ public class MapSettingsPO extends PageArea {
|
||||
|
||||
@FindBy(how = BySeleniumId.class, using = "SaveButton")
|
||||
private WebElement saveButton;
|
||||
|
||||
@FindBy(how = BySeleniumId.class, using = "showSimulatorOverlay-input")
|
||||
private WebElement showSimulatorOverlay;
|
||||
|
||||
public MapSettingsPO(WebDriver driver, WebElement element) {
|
||||
super(driver, element);
|
||||
@@ -59,6 +58,7 @@ public class MapSettingsPO extends PageArea {
|
||||
}
|
||||
|
||||
public boolean isSimulatorOverlayAvailable() {
|
||||
return (showSimulatorOverlay != null);
|
||||
List<WebElement> foundElements = findElementsBySeleniumId(context, "showSimulatorOverlay-input");
|
||||
return !foundElements.isEmpty();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user