I'm using selenium/firefox/c# to enter data into several fields in a webpage, and then submit it to the website by clicking a submit button. I have tried using ImplicitlyWait so that the program waits for the results page to load for a maximum of 45 seconds and then grab results from that page. I have it currently coded as this
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(45));
driver.FindElement(By.Id("dnn_ctr1734_Professional_btnSubmit")).Click();
I'm putting the implicit wait before clicking the submit button, but even if it takes only 15 seconds for the page to load its not grabbing the results when it finally loads. Do I have the ImplicitWait in the right order?