We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccc6db commit 18ad7d8Copy full SHA for 18ad7d8
java/test/org/openqa/selenium/bidi/emulation/EmulationTest.java
@@ -40,6 +40,11 @@ class EmulationTest extends JupiterTestBase {
40
Object getBrowserGeolocation(WebDriver driver, String userContext) {
41
JavascriptExecutor executor = (JavascriptExecutor) driver;
42
43
+ BrowsingContext context = new BrowsingContext(driver, driver.getWindowHandle());
44
+ String url = appServer.whereIs("blank.html");
45
+ context.navigate(url, ReadinessState.COMPLETE);
46
+ driver.switchTo().window(context.getId());
47
+
48
Permission permission = new Permission(driver);
49
var origin = executor.executeScript("return window.location.origin;");
50
String originValue = (String) origin;
0 commit comments