Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows.Forms;
- using OpenQA.Selenium;
- using OpenQA.Selenium.Chrome;
- namespace Hello_World_Selenium
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Create the reference for our browser
- IWebDriver driver = new ChromeDriver();
- driver.Navigate().GoToUrl("http://www.google.com");
- // Find the text input element by its name
- IWebElement query = driver.FindElement(By.Name("q"));
- // Enter something to search for
- query.SendKeys("Hello World");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement