mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-browsers: use deprecated setScriptTimeout
parent
dc227a212c
commit
f83e4fa7b6
|
@ -21,9 +21,9 @@ import java.net.MalformedURLException;
|
|||
import java.net.URL;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.time.Duration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.openqa.selenium.UnexpectedAlertBehaviour;
|
||||
import org.openqa.selenium.chrome.ChromeDriver;
|
||||
|
@ -92,7 +92,7 @@ public class ChromeUser extends BrowserUser {
|
|||
this.driver = new ChromeDriver(options);
|
||||
}
|
||||
|
||||
this.driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(timeOfWaitInSeconds));
|
||||
this.driver.manage().timeouts().setScriptTimeout(timeOfWaitInSeconds, TimeUnit.SECONDS);
|
||||
this.configureDriver(new org.openqa.selenium.Dimension(1920, 1080));
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package io.openvidu.test.browsers;
|
|||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.openqa.selenium.UnexpectedAlertBehaviour;
|
||||
import org.openqa.selenium.edge.EdgeDriver;
|
||||
|
@ -36,7 +36,7 @@ public class EdgeUser extends BrowserUser {
|
|||
this.driver = new EdgeDriver(options);
|
||||
}
|
||||
|
||||
this.driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(timeOfWaitInSeconds));
|
||||
this.driver.manage().timeouts().setScriptTimeout(timeOfWaitInSeconds, TimeUnit.SECONDS);
|
||||
this.configureDriver(new org.openqa.selenium.Dimension(1920, 1080));
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package io.openvidu.test.browsers;
|
|||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.openqa.selenium.UnexpectedAlertBehaviour;
|
||||
import org.openqa.selenium.firefox.FirefoxDriver;
|
||||
|
@ -60,7 +60,7 @@ public class FirefoxUser extends BrowserUser {
|
|||
this.driver = new FirefoxDriver(options);
|
||||
}
|
||||
|
||||
this.driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(timeOfWaitInSeconds));
|
||||
this.driver.manage().timeouts().setScriptTimeout(timeOfWaitInSeconds, TimeUnit.SECONDS);
|
||||
this.configureDriver(new org.openqa.selenium.Dimension(1920, 1080));
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package io.openvidu.test.browsers;
|
|||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.openqa.selenium.chrome.ChromeOptions;
|
||||
import org.openqa.selenium.remote.Browser;
|
||||
|
@ -39,7 +39,7 @@ public class OperaUser extends BrowserUser {
|
|||
// this.driver = new OperaDriver(options);
|
||||
}
|
||||
|
||||
this.driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(timeOfWaitInSeconds));
|
||||
this.driver.manage().timeouts().setScriptTimeout(timeOfWaitInSeconds, TimeUnit.SECONDS);
|
||||
this.configureDriver(new org.openqa.selenium.Dimension(1920, 1080));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue