Tutorial by Examples

C#

using OpenQA.Selenium; using OpenQA.Selenium.Chrome; namespace BasicWebdriver { class WebDriverTest { static void Main() { using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl("http://www.google.com"...
from selenium import webdriver from selenium.webdriver.common.keys import Keys def set_up_driver(): path_to_chrome_driver = 'chromedriver' return webdriver.Chrome(executable_path=path_to_chrome_driver) def get_google(): driver = set_up_driver() driver.get('http://www.googl...
The code below is all about 3 steps. Opening a chrome browser Opening google page Shutdown the browser import org.openqa.selenium; import org.openqa.selenium.chrome; public class WebDriverTest { public static void main(String args[]) { System.setProperty("webdriver.chr...
Usecase : Login to FB account import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class FaceBookLoginTest { private static WebDriver driver; HomePage homePage; ...

Page 1 of 1