<HTML> <head> <title> tekst pusty z webdriver selenum Firefox
Używam Firefoksa 21 i C # WebDriver 2.33 w systemie Windows 7. Jestem zdumiony, dlaczego poniższy test kończy się niepowodzeniem (co tylko sprawdzam, czy moja konfiguracja jest poprawnie skonfigurowana). To przechodzi w innych przeglądarkach.
[Test]
public void FirefoxDriverWorks()
{
var firefoxDriver = new FirefoxDriver();
TestGoogleStillExists(firefoxDriver);
firefoxDriver.Quit();
}
public void TestGoogleStillExists(IWebDriver webDriver)
{
webDriver.Navigate().GoToUrl("http://www.google.com");
var title = webDriver.FindElement(By.CssSelector("head title"));
Assert.That(title.Text, Is.EqualTo("Google"));
}