Verify a web element can be interracted with
<p>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.</p>

<p>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. </p>

<p>All ideas welcome.</p>

<p>Thanks,
James</p>

<p>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?</p>

<p>I tried to use the following to focus the element then verify focus: </p>

<pre><code>arguments[0].focus();
if(document.activeElement==arguments[0]){
    return true;
}
else{
    return false
}
</code></pre>

<p>(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...</p>
