Unable to operate the prompts of spot fire using selenium webdriver
<p>If anybody has tested spot fire web applications using selenium webdriver please help me. Spot fire uses prompts as popups. And am unable to locate the prompts buttons to click.</p>

<p>Steps i followed:</p>

<ol>
<li>Save the current window handle.</li>
<li>Get the next prompt window
handle by traversing through iterator(While Loop). </li>
<li>Find the element on new window and click it. But when i printed current
window handle and new window handle are same. </li>
</ol>

<p>Below is my code</p>

<pre><code>String parentWindowHandler = driver.getWindowHandle();//Stored parent window
String subWindowHandler = null;
Set&lt;String&gt; handles = driver.getWindowHandles();
Iterator&lt;String&gt; iterator = handles.iterator();
while (iterator.hasNext()){
            subWindowHandler = iterator.next();
        }
driver.switchTo().window(subWindowHandler);
(....My click functions)
</code></pre>

<p>I have pasted the fire bug element track below for "OK" Button on prompts.</p>

<p>
    
          Next</p>

<p>I have tried to take control using "class" but its throwing exception saying it cant take common/general class.</p>

<p>Please suggest me how to proceed to click a OK button on spot fire prompts.</p>

<p>I forgot to inform.My Prompt contains a "scroll bar" and "Next" button and "Cancel" Button. I need to choose items from scroll bar and press next or cancel button.</p>