Tuesday, February 12, 2019

How to Open Browser in Selenium



import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class login {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver","C:\\Users\\dell\\Downloads\\chromedriver_win32\\chromedriver.exe");                               
WebDriver driver = new ChromeDriver();
driver.get("https://www.facebook.com/");



}

}

For More Detail Please see video "https://youtu.be/ayelY9W0TRI"

No comments:

Post a Comment