A Modal Popup
is not considered a standard Win32 Dialog
by Test Studio and should not be affected by the UnexpectedDialogAction
. Does closing your Modal window trigger a dialog, like an Alert or Confirm?
When you record a test that clicks a link in a Modal window that closes it, two steps are recorded:
- Click 'CloseWindowLink' (ClosesBrowser = True)
- Close modal pop-up window
If executed as is, the test fails. If you disable the Close modal
step, a subsequent step fails because the ActiveBrowser focus has not returned to the parent window.
The solution is to convert the Close modal
step to code:
Even though the modal window is already closed, this line properly returns focus to the parent window and restores it as ActiveBrowser. If you continue to experience difficulty, please provide more information
so we can continue troubleshooting.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.