Selenium 3.0 released!!!

Selenium has released 3.0 this week, so i created a post as simple example with it.

below is script run on firefox browser, now FirefoxDirver is not default support, you need add the [red line] to change system property.


public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "jarfiles//geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("https://google.com");
driver.findElement(By.name("q")).sendKeys("hadoautomation");
System.out.println(driver.getTitle());
driver.close();
}

For more detail about 3.0 release please find at: https://raw.githubusercontent.com/SeleniumHQ/selenium/master/java/CHANGELOG

and download geckodriver.exe at https://github.com/mozilla/geckodriver/releases

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.