Ejemplo n.º 1
0
        public void GoogleTest()
        {
            BaseDriver.Navigate().GoToUrl("http://www.google.com/");
            IWebElement query = BaseDriver.FindElement(By.Name("q"));

            query.SendKeys("Bread" + Keys.Enter);
            Thread.Sleep(2000);
            Assert.AreEqual("Bread - Google Search", BaseDriver.Title);
            BaseDriver.Quit();
        }
 /// <summary>
 /// Goes to a specific URL.
 /// </summary>
 /// <param name="Url">The expected URL</param>
 public void GoForward(String Url)
 {
     BaseDriver.Navigate().Forward();
 }
 /// <summary>
 /// Goes to a specific URL.
 /// </summary>
 /// <param name="Url">The expected URL</param>
 public void GoBack(String Url)
 {
     BaseDriver.Navigate().Back();
 }
 /// <summary>
 /// Goes to a specific URL.
 /// </summary>
 /// <param name="Url">The expected URL</param>
 public void GoTo(String Url)
 {
     BaseDriver.Navigate().GoToUrl(Url);
 }