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 8916945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:22:28+00:00 2026-06-15T05:22:28+00:00

Given a page with a <select> element and some <option> s, that when clicked

  • 0

Given a page with a <select> element and some <option>s, that when clicked cause the browser to open a new URL, like (JavaScript code omitted):

<select>
  <option value="here">go here</option>
  <option value="there">go there</option>
</select>

When I automate this behavior with WebDriver I call

hereOrThereSelectElement.SelectByValue("here");

and then it waits until the new page has loaded.

In my case, the page load for the new location takes more than 60s (intentionally), so I had to increase the command timeout of the WebDriver instance. Unfortunately this timeout will affect all other tests created with the same WebDriver instance.

Also I would like to perform an explicit Wait for the new page to load (to mark it as long running in the test scenario), but in this condition the next command will be called after the SelectByValue command succeeded – so no Wait needed anymore.

I looked into the source and realized that SelectByValue command uses the Click logics which waits for a page to load if needed.

So my question is: How do I explicitly perform a SelectByValue (or Click) without waiting for a new page to load?

Update:
What I actually want to have in my code is:

// the following command should not wait for the new page to load
hereOrThereSelectElement.SelectByValueButDoNotWait("here");
webDriverWait.Until(/* some "page has loaded" check */)
  • 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-15T05:22:29+00:00Added an answer on June 15, 2026 at 5:22 am

    Finally, I found a solution for this.

    Meanwhile the problem has slightly shifted to a call to a WebElement’s Click() method that ran into the timeout. Nethertheless the following solution applies also to the original problem with calling SelectByValue().

    So, one can use Selenium’s Actions low-level interactions builder to perform a click on an element.

    var actions = new Actions(webDriver);
    actions
      .MoveToElement(aClickableWebElement);
      .Click();
      .Build()
      .Perform();
    

    Maybe this will help anyone having similar problems.

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

Sidebar

Related Questions

Given an HTML page I would like to get all the 'x' files that
Short question: I'm trying to make that in a given page (uses tabs) back
Given remote page: http://example.com/paged_list.aspx which uses a Javascript function call to display several pages
I'm trying to select an element given by: /html/body[@id='someid']/form[@id='formid']/div[@id='someid2']/div[@id='']/div[@id='']/div[@id='']/table/tbody[@id='tableid']/tr[7]/td[2] Now the html of that
Given a webpage that uses lots of javascript to generate its HTML, how can
How to see the which JSP file contains the given UI element like textbox
I have the following code that extracts urls from a given page using jsoup.
I am trying to get the web status for a given page. However when
http://jsfiddle.net/YumHS/ In the page given in the jsfiddle der is a sidebar in the
i want to have an iframe, which displays the page given as parameter in

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.