Testing for jQuery UI modal dialog or alternatives on page

I was wondering how you can check for jQuery UI modal dialog with Selenium.

I did a few google searches but nothing is visible. although this page suggested isVisible ():

http://groups.google.com/group/selenium-test-tool/browse_thread/thread/6affc0ef45a1d4a6?pli=1

I will also need to test the elements in the dialog box and return to the page from which the dialog was initiated.

Thanks in advance.

+3
source share
3 answers

The following works with the jQuery UI moda demo at http://jqueryui.com/demos/dialog/

open | http://jqueryui.com/demos/dialog/
click | css=#demo-config-menu a:contains(Modal dialog)
waitForVisible | dialog-modal
assertText | ui-dialog-title-dialog-modal | Basic modal dialog
assertText | dialog-modal | Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.
click | css=.ui-dialog-titlebar-close
waitForNotVisible | dialog-modal
+3
source

- .

, div, WaitForVisible, , . , "WaitForNotVisible", .

div, - .

+4
<tr>
<td>waitForTextPresent</td>  
<td>Selecione os produtos para impressão</td>
<td></td>

You can use this to check the dialog by title

0
source

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


All Articles