Latest Posts

Opening Chrome Browser using Selenium WebDriver

package demopackage; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class DemoClass { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","C:\\Work\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://www.facebook.com"); System.out.println("test case passed"); } }


No comments:

Post a comment