You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TESTAR disables by default the functionality of alert(), confirm(), and print() functions in the javascript class that is loaded within the web plugin:
However, if some of these pop-up dialogs run inside an iframe element, TESTAR is not disabling the functionality by default. Still, it forces the focus on the main page of the SUT by using a webdriver.switchTo() method:
TESTAR disables by default the functionality of alert(), confirm(), and print() functions in the javascript class that is loaded within the web plugin:
TESTAR_dev/webdriver/resources/web-extension/js/testar.init.start.js
Lines 64 to 67 in 6007a95
Example in which the alert dialog is disabled: https://demo.guru99.com/test/delete_customer.php
However, if some of these pop-up dialogs run inside an iframe element, TESTAR is not disabling the functionality by default. Still, it forces the focus on the main page of the SUT by using a
webdriver.switchTo()
method:TESTAR_dev/webdriver/src/org/testar/monkey/alayer/webdriver/WdDriver.java
Lines 425 to 440 in 6007a95
Example in which the alert dialog is not disabled because it is part of an iframe: https://www.w3schools.com/js/tryit.asp?filename=tryjs_alert
Possible solution:
It is possible to adapt the TESTAR code to allow the execution of these dialogs and to at least extract the text information before closing it.
https://github.com/TESTARtool/TESTAR_dev/tree/webdriver_alerts
Future:
We need to improve this feature, consider the dialog a new state, and automatically derive a confirmation action.
The text was updated successfully, but these errors were encountered: