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 9d132ee commit e4f26e8Copy full SHA for e4f26e8
java/client/src/com/thoughtworks/selenium/webdriven/commands/GetLocation.java
@@ -19,11 +19,12 @@
19
20
import com.thoughtworks.selenium.webdriven.SeleneseCommand;
21
22
+import org.openqa.selenium.JavascriptExecutor;
23
import org.openqa.selenium.WebDriver;
24
25
public class GetLocation extends SeleneseCommand<String> {
26
@Override
27
protected String handleSeleneseCommand(WebDriver driver, String ignored, String alsoIgnored) {
- return driver.getCurrentUrl();
28
+ return ((JavascriptExecutor) driver).executeScript("return window.location.href").toString();
29
}
30
0 commit comments