mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
Handling of the Alert fixed
This commit is contained in:
1 parent
3b069f5c40
commit
6ec526fb95
1 file changed
+5
-1
+5
-1
@@ -7,9 +7,11 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.openqa.selenium.Alert;
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.ExpectedCondition;
|
||||
import org.openqa.selenium.support.ui.ExpectedConditions;
|
||||
import org.openqa.selenium.support.ui.Select;
|
||||
|
||||
@@ -254,7 +256,9 @@ public class TracTracEventManagementPanelPO extends PageArea {
|
||||
|
||||
this.startTrackingButton.click();
|
||||
|
||||
if(ExpectedConditions.alertIsPresent() == null)
|
||||
ExpectedCondition<Alert> condition = ExpectedConditions.alertIsPresent();
|
||||
|
||||
if(condition.apply(this.driver) == null)
|
||||
waitForAjaxRequests();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user