Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6168407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:40:57+00:00 2026-05-23T22:40:57+00:00

Selenium.WaitForPageLoad(50000); Selenium.Click(title); Most times when it takes more than 50000, I get Timeout error.

  • 0
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”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:40:57+00:00Added an answer on May 23, 2026 at 10:40 pm

    I don’t recommend it, but if you want selenium to wait indefinitely, use a try-catch block and a loop:

    while (true)
    {
       try
       {
           Selenium.WaitForPageLoad("5000");
           break; //executed if page finished loading
       }
       catch (Exception)
       {
           //ignore the timeout exception
       }
    }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing using Selenium RC but most of the waitforNottext etc are not
The following command selenium.click(link=Identify Awards); opens a popup however the the test does not
In selenium IDE, I need to click on the nth link that has text
I am trying to run a quick selenium example to get started, and am
Using Selenium WebDriver (.Net) I'm able to get to a tabstip (MS Control), and
Selenium HQ records some web navigation and can replay it from Firefox. I want
usually selenium does not identify elements on a browser toolbar. But this is for
Using selenium how can I click on the right click of mouse or press
What is the correct way to run a jQuery .click() in a selenium test?
lib- selenium-java2.0rc2.jar and selenium-server-standalone-2.-b3.jar simple test: webDriver = new FirefoxDriver(); webDriver.get(http://www.google.com); webDriver.findElement(By.name(q)).sendKeys(Test); webDriver.findElement(By.name(btnG)).click(); Assert.assertTrue(webDriver.findElement(By.cssSelector(ol#rso>li:nth-child(1)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.