Latest Posts

Opening Firefox Browser using Selenium WebDriver



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


No comments:

Post a comment