Skip to content

Instantly share code, notes, and snippets.

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 WryanBrock/d165303d40c7c53fdd124787a5ae0343 to your computer and use it in GitHub Desktop.
Save WryanBrock/d165303d40c7c53fdd124787a5ae0343 to your computer and use it in GitHub Desktop.
Simple one
package scraperBlocks;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class simpleie {
public static void main(String[] args) {
System.setProperty("webdriver.ie.driver", "C:\\Users\\seymo\\Desktop\\Projects\\Drivers\\iedriver\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();
driver.get("https://www.google.com/");
driver.findElement(By.cssSelector(".gLFyf")).sendKeys("admin");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment