using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; namespace SeleniumhelloWorld { public class Class1 { static void Main(String[] args) { IWebDriver driver = new FirefoxDriver(); driver.Navigate().GoToUrl("http://www.google.com/"); driver.Manage().Window.Maximize(); IWebElement searchInput = driver.FindElement(By.Id("sb_form_q")); searchInput.SendKeys("Hello World"); searchInput.SendKeys(Keys.Enter); driver.Close(); } } }
Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055
Quote:36.0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)