1. Launch Google Chrome
2. Open anuko time sheet
To do:
Download latest selenium web driver version : http://www.seleniumhq.org/download/
and
Download google driver exe from :http://chromedriver.storage.googleapis.com/index.html
(Based on your OS download the latest version)
Script :
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LaunchChrome { | |
public static void main(String[] args) throws InterruptedException, IOException { | |
// TODO Auto-generated method stub | |
// to point the chrome driver exe.. | |
System.setProperty("webdriver.chrome.driver","your path to chrome exe"); | |
// Ex. D://chromedriver.exe | |
WebDriver driver=new ChromeDriver(); | |
driver.get("https://timetracker.anuko.com/login.php"); | |
driver.manage().window().maximize(); | |
} | |
} |
How to run :
From eclipse right click the program and run as java script.
Note : About google chrome driver
WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. ChromeDriver is available for Chrome on Android and Chrome on Desktop (Mac, Linux, Windows and ChromeOS).
For more details go to this link : https://sites.google.com/a/chromium.org/chromedriver/home
From eclipse right click the program and run as java script.
Note : About google chrome driver
WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. ChromeDriver is available for Chrome on Android and Chrome on Desktop (Mac, Linux, Windows and ChromeOS).
For more details go to this link : https://sites.google.com/a/chromium.org/chromedriver/home