I wrote a console application (visual studio 2013, C#) to test my web site with selenium.
This is my code
public static void Main(string[] args)
{
IWebDriver driver = new FirefoxDriver();
driver.Navigate().GoToUrl("myUrl");
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(40));
wait.Until(ExpectedConditions.ElementExists(By.Id("wsConnected")));
driver.Quit();
}
wsConnected is a div I put in page with jquery after page load (less than 10 seconds).
I am using Selenium 2.46.0 with Firefox v39.0
Of course it doesn't work because I get the driver timeout error after 60 seconds, any help will be very appreciated.
Thanks, Alessandro
[UPDATE] wait.Until fails with this exception: An unhandled exception of type 'OpenQA.Selenium.WebDriverException' occurred in WebDriver.Support.dll. Additional information: The HTTP request to the remote WebDriver server for URL http://localhost:7056/hub/session/86847fde-462b-47be-85e1-31cd51791dc3/element timed out after 60 seconds.
[UPDATE 2] I downgraded Selenium to 2.43 and firefox to v32, no timeout, endless wait