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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:22:33+00:00 2026-06-08T12:22:33+00:00

Hi – apologies for a bot of a generic question… We are automating our

  • 0

Hi – apologies for a bot of a generic question… We are automating our UI testing by using Selenium Web Driver (v2.24.1), and it works like a dream with the exception on IE9.

We are doing part of client side functionality by hiding/showing UI controls via addClass and removeClass jQuery methods. addClass and removeClass jquery methods append (or remove) classes from DOM. This way, we can do Selenium DOM iteration looking for those changes in order to trigger actions…

Our problem is that those DOM changes are not reflected in IE9 – e.g. functionally everything is working correctly on IE, but the “dom is static”, thus Selenium cannot reckognize some panel is shown or hidden…

So, the question:

1) Is there a way to reflect the addClass and removeClass in IE9 in a dynamic manner?
2) Should we possibly monitor/capture changes in a different way? (Possibly assigning some kind of event listeners on the components that are causing us problem?)

Hope this question is not too vague – this is not an issue with one particular component, but I think it is more down to the way we are trying to use Selenium in a generic way across multiple products…

  • 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-08T12:22:34+00:00Added an answer on June 8, 2026 at 12:22 pm

    Let me make sure I understand properly:

    • DOM Loads in state “A”
    • jQuery manipulates the DOM to state “B”
    • Selenium in IE9 doesn’t reflect the DOM in state “B” it still looks like “A”

    If above is the case perhaps you have run into a bug with selenium and IE9?

    Here is a possible quick work around: execute JavaScript via Selenium after the DOM is in state “B” (or to check if it has reached state “B”) and return the results back to selenium:

    IJavaScriptExecutor js = webDriver as IJavaScriptExecutor;
    string hasClass = (string)js.ExecuteScript("$('#ui-control').hasClass('someClass')");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies, It looks like my original question was not able to correctly explain what
Apologies if this is a dumb question. In previous ASP.NET projects, I've been using
Apologies if this question sounds a bit generic. I'm just looking for some general
Apologies for this question but I can't find proper answer on the web. I'm
Apologies for the poor question title. I have two tables, jobs and Persons-Jobs. Jobs
Apologies if this is too ignorant a question or has been asked before. A
Apologies if this question is a bit obscure, I've been banging my head against
Apologies for asking what's probably a very obvious question, I've been banging my head
Apologies in advance because I'm really unsure how to ask this question so if
Apologies for the massively stupid question but I am curious how to get this

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.