mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-browsers: udpate EdgeUser to new scriptTimeout API
parent
62794257e3
commit
dc227a212c
|
@ -2,7 +2,7 @@ package io.openvidu.test.browsers;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.time.Duration;
|
||||||
|
|
||||||
import org.openqa.selenium.UnexpectedAlertBehaviour;
|
import org.openqa.selenium.UnexpectedAlertBehaviour;
|
||||||
import org.openqa.selenium.edge.EdgeDriver;
|
import org.openqa.selenium.edge.EdgeDriver;
|
||||||
|
@ -36,7 +36,7 @@ public class EdgeUser extends BrowserUser {
|
||||||
this.driver = new EdgeDriver(options);
|
this.driver = new EdgeDriver(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.driver.manage().timeouts().setScriptTimeout(timeOfWaitInSeconds, TimeUnit.SECONDS);
|
this.driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(timeOfWaitInSeconds));
|
||||||
this.configureDriver(new org.openqa.selenium.Dimension(1920, 1080));
|
this.configureDriver(new org.openqa.selenium.Dimension(1920, 1080));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue