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

  • Home
  • SEARCH
  • 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 8795195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:21:15+00:00 2026-06-13T23:21:15+00:00

We are currently migrating our automation scripts from Selenium RC to WebDriver. I’ve run

  • 0

We are currently migrating our automation scripts from Selenium RC to WebDriver. I’ve run into a few issues with WebDriver, mainly dealing with TimeoutExceptions being thrown the instant something in the web page being tested is changed.

For example, I am currently logging in on a page, then clicking a submit button, which redirects to a new page. The instant the click() method is invoked the exception is thrown. However if I stay focused on the password field and use SendKeys(Keys.Enter) the redirect works without any issues.

Has anyone else ran into this? Since the exception is thrown when the click method is invoked, I cannot set any wait or timeout period directly after. I know I can swallow the TimeoutException, but surely there has to be a better solution.

I am using the Firefox driver. I am guessing the issue has something to do with the pages’ source being changed.

Here is the exception:

TimeoutException

Here is the click method:

public void ClickByName(string name) 
{ 
    _driver.FindElement(By.Name(name)).Click(); 
}
  • 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-06-13T23:21:15+00:00Added an answer on June 13, 2026 at 11:21 pm

    I put a sleep statement after logging in to the page, before checking for page errors and this fixed the problem, as well as InvalidOperationExceptions being thrown occasionally.

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

Sidebar

Related Questions

We are currently migrating our code from VB6 to Net4. We are now at
We're currently migrating our database back-end from Firebird to PostgreSQL. We use NHibernate as
Our development team is currently looking into migrating our search system to Apache Solr,
We are currently in the process of migrating our application from our production environment
I am currently migrating our build process from Eclipse/Ant to Maven/M2Eclipse/Artifactory. I have a
We're migrating from an SVN server inside our office to a hosted service. Currently
We are currently migrating all our solutions from 2005 to 2010 (that's right, we're
I'm currently in charge of migrating our asp.net applications from source safe to TFS.
We are currently migrating our app from VB6 to Net. As the Net forms
I'm looking into migrating our system to Windows Azure. Currently we have an automated

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.