Skip to content

Instantly share code, notes, and snippets.

@krish63
Created February 27, 2019 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krish63/9add9cc119bf106ca5c4bc7846a8a5fb to your computer and use it in GitHub Desktop.
Save krish63/9add9cc119bf106ca5c4bc7846a8a5fb to your computer and use it in GitHub Desktop.
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;
public class Safari_getLocation_Test extends Thread {
public static void main(String[] args) throws Exception {
WebDriver driver= new SafariDriver();
driver.get("http://www.websocket.org/echo.html");
driver.findElement(By.id("connect")).getLocation();
driver.quit();
} // MAIN END
} // CLASS END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment