Selenium.WaitForPageLoad("50000");
Selenium.Click("title");
Most times when it takes more than 50000, I get Timeout error. I do not want to increase the time. Is there a way to give it something like “take as long as you want”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t recommend it, but if you want selenium to wait indefinitely, use a try-catch block and a loop:
Again this is probably a bad idea, timeouts are generally a good thing. Depending on what you are trying to do you might want to consider checking if a particular element has finished loading as opposed to the whole page.