Skip to content

Instantly share code, notes, and snippets.

Last active June 13, 2016 07:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
package webDriverSample;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class SeleniumWebDriver {
public static void main(String[] args) throws Exception {
System.setProperty("", "driver/chromedriver");
WebDriver driver = new ChromeDriver();
WebElement element = driver.findElement("q"));
element.sendKeys("フリーランス チャレンジ selenium"); //検索文字をセット;
// driver.quit(); //ブラウザ閉じる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment