How to record pop-ups with selenium IDE

During recording through the Selenium IDE, when a pop-up window opens, it is not recorded. "An error message is displayed at runtime. Please help me.

+3
source share
5 answers

If this popup has a name, for example opening from javascript window.open (URL, name). You can then add a command to check the contents of the popup. Like the following command: waitForPopUp | winId | 30000 selectWindow | Winid ... close

However, if the window does not have a name, for example, it is open from <target = "_ blank"> then you are out of luck.

http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ#SeleniumCoreFAQ-HowdoIworkwithapopupwindow%3F .

+3

Selenium IDE , , Selenium RC, .

+1

WaitForPopUp 30000

.

+1

, / Selenium IDE . , AJAX, .

, , , .

.

0
source

Selenium IDE can record popup, below is my code I record popup through selenium, check and let know

 <tr>
<td>click</td>
<td>id=edit-legal-accept</td> // click on this then pop up is open
<td></td>
</tr>
<tr>
<td>waitForPopUp</td>
<td>CtrlWindow</td>
<td>30000</td>
</tr>
<tr>
<td>selectWindow</td> 
<td>name=CtrlWindow</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Terms And Conditions</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Terms &amp; Conditions of Use</td>
<td></td>
</tr>
<tr>
<td>close</td>
<td></td>
<td></td>
</tr>
<tr>
<td>selectWindow</td>  // This command used to select our main windows
<td>null</td>  
<td></td>
</tr>
0
source

Source: https://habr.com/ru/post/1729044/


All Articles