Note that there are some explanatory texts on larger screens.

plurals
  1. POSelenium Webdriver - (Java) - working with HTML dialogs
    primarykey
    data
    text
    <p>Here is the situation:</p> <ol> <li>Click on <code>Import file</code> button (this action will upload a file). </li> <li>After file upload, then appears a popup (HTML popup). I used <code>driver.switchTo().frame(1);</code> to switch to that popup and click "Next" in that popup. </li> <li>Clicking <code>Next</code> will navigate user to second step in that popup. Click <code>process commission</code> button in that second step of popup. </li> <li>After clicking <code>process commission</code> button, then appears a new confirmation popup (HTML popup). </li> <li>I am not able to click <code>yes</code> in that confirmation popup. </li> </ol> <p>I tried using:<br> <code>driver.switchTo().frame(0);</code> - did not work<br> <code>driver.switchTo().frame(1);</code> - did not work<br> <code>driver.switchTo().frame(2);</code> - did not work </p> <p>Please suggest any solution. </p> <pre><code>&lt;form id="Form1" enctype="multipart/form-data" action="ProcessCommission.aspx?i=2115&amp;pn=Manage+Commission&amp;j=2345&amp;prn=Process+Commission" method="post"&gt; &lt;iframe scrolling="no" frameborder="0" src="javascript:'&lt;html&gt;&lt;/html&gt;';" style="position: fixed; width: 400px; height: 100px; left: 431px; top: 53px; background-color: rgb(255, 255, 255); z-index: 3003;" tabindex="-1"&gt; &lt;div id="RadWindowWrapper_confirm1381733327500" class="RadWindow RadWindow_Windows7 rwNormalWindow rwTransparentWindow" style="width: 400px; height: 100px; position: absolute; transform: none; backface-visibility: visible; visibility: visible; left: 431px; top: 377px; z-index: 3003;" unselectable="on"&gt; &lt;table class="rwTable" cellspacing="0" cellpadding="0" style="height: 51px;"&gt; &lt;tbody&gt; &lt;tr class="rwTitleRow"&gt; &lt;tr class="rwContentRow"&gt; &lt;td class="rwCorner rwBodyLeft"&gt; &lt;/td&gt; &lt;td class="rwWindowContent" valign="top"&gt; &lt;iframe frameborder="0" name="confirm1381733327500" src="javascript:'&lt;html&gt;&lt;/html&gt;';" style="width: 100%; height: 100%; border: 0px none; display: none;" tabindex="0"&gt; &lt;div id="confirm1381733327500_content"&gt; &lt;div class="rwDialogPopup"&gt; &lt;div class="rwDialogText"&gt; &lt;div&gt; &lt;a class="rwPopupButton" href="javascript:void(0); "onclick="$find('confirm1381733327500').close(true);" tabindex="-1"&gt; &lt;span class="rwOuterSpan"&gt; &lt;span class="rwInnerSpan"&gt;Yes&lt;/span&gt; &lt;/span&gt; &lt;/a&gt; &lt;a class="rwPopupButton" href="javascript:void(0);" onclick="$find('confirm1381733327500').close(false);" tabindex="-1"&gt; &lt;span class="rwOuterSpan"&gt; &lt;span class="rwInnerSpan"&gt;No&lt;/span&gt; &lt;/span&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload