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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:54:54+00:00 2026-06-07T01:54:54+00:00

We are using WatiN from C# to interact with a browser (currently only IE).

  • 0

We are using WatiN from C# to interact with a browser (currently only IE).

Some of WatiN’s methods are a simple wrapper that sends an onchanged() and onclick() to certain web elements.

WatiN also provides a fire-and-forget version for this, which basically provides a non blocking version.

My question is, does the browser also two JS functions to execute at the same time?

For example, assume the following code:

// Uses FireEventAsync("onchanged")
SelectList.SelectNoWait()

SelectList.FireEventAsync("onclick")

Can both JS functions onclick and onchanged execute at once?

I believe we are experiencing a similar issue, where an onchanged() function is still executing while we fire another event, I was wondering if that is technically possible.

  • 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-07T01:54:56+00:00Added an answer on June 7, 2026 at 1:54 am

    In short: no. JavaScript execution is single-threaded.

    However, with asynchronous operations (ajax, timers, workers, etc.), parts of a function can be setup to be executed later when the thread is free.

    A contrived example would be:

    function foo() {
        setTimeout(function () {
            console.log('three');
        }, 10);
    
        console.log('one');
    }
    
    function bar() {
        console.log('two');
    }
    
    foo();
    bar();
    

    Though foo and bar are called synchronously and the logs are written in order of three, one, two, they will be executed in order of one, two, three as the timer will delay the log of ‘three' for later.

    And, even if your handlers don’t use anything asynchronous, SelectNoWait and FireEventAsync likely do.

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

Sidebar

Related Questions

I'm using Watin to automate download file from a website. At some point a
I'm using WatiN for some automated tests and what I found was that creating
I learned basics of web-based integration testing using SpecFlow and WatiN. From what I
I am currently using WatiN to automate a proprietary website at my work, and
I'm trying to run Watin from within a TeamCity build, using nUnit. All tests
I'm using WATIR to control browser, but there is page that never fully loads
Hi i'm trying to get a row count from a table using Watin ie
I'm using WatiN to parse my web site. I have a button that starts
Using WatiN, Im facing some issues with FireFox FF = new FireFox (http://www.google.com); ,
We are currently using Watin to do UI testing on our web application. 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.