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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:07:15+00:00 2026-05-28T01:07:15+00:00

I am writing automated test scripts for a project I am working on, using

  • 0

I am writing automated test scripts for a project I am working on, using webdriver. During one of my scripts a “wheel of hope appears” on the page while a payment is being processed. All other elements are displayed on the page but the spinning wheel always takes focus. Hence I can’t click/interact with any elements on the page.

In general before clicking on an element I verify that it is on the page. My problem is
that the element is on the page but I am unable to click on it due to the wheel taking focus. Is there a way to verify that an element can have focus/be the active element? Otherwise I am stuck using explicit waits as my wait for jquery implicit wait doesn’t seem to work.

All ideas welcome.

Thanks,
James

My one thought is to use jquery to focus on the element, and then to only start the next action once the element has been focused on. Does anyone know if this would have limitations?

I tried to use the following to focus the element then verify focus:

arguments[0].focus();
if(document.activeElement==arguments[0]){
    return true;
}
else{
    return false
}

(where arguments[0] is the webelement behind the wheel of hope I want to click on). Unfortunately it returns true while the wheel is still spinning and taking away focus…

  • 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-28T01:07:15+00:00Added an answer on May 28, 2026 at 1:07 am

    Assuming this “wheel of hope” is a masking element that covers the entire page, you should wait for it to be hidden or removed from the DOM before you try to interact with the underlying element (just as you would manually).

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

Sidebar

Related Questions

I'm working on writing a test to be added to an automated test script,
I'm writing an automated test framework where after each action (loading a new page
I am writing an automated test program using curl-loader, to send calculated requests to
I'm writing some automated acceptance tests for a flash movie (driving the movie using
Writing some test scripts in IronPython, I want to verify whether a window is
I am writing an automated test script in python and I need to integrate
Here's the situation. I'm writing an automated test that walks the list of dependencies
I'm writing some automated tests using Capybara/RSpec, I choose/configure the driver by using this
I'm writing an automated test to determine whether or not rtf files are successfully
I'm writing a small Java app using JavaMail that sends the user 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.