-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching to a dialog and selecting a button for a customized form #24
Comments
Since it looks like the dialog is not within an iFrame, the existing SwitchToDialogFrame will not work. I would add an explicit wait to look for the dialog. Here is a example you can try. You may have to adjust the logic a little but it will wait for 2 seconds and if the dialog becomes visible then it will click the "Ok" button. xrmBrowser.Driver.WaitUntilVisible(By.XPath("id("alertJs-dialog")"), |
Let me know if that worked for you and I will close the issue. Thanks |
Hi, thank you for the reply. I followed your suggestion and used WaitUntilVisible. However, it seems the control does not go to the dialog box. The system interacts with UI elements in the background, and closes the entity form after the wait times and the dialog remains hanging. Please see the attachment. |
Hi, I am closing this issue. |
I was trying to extend the tests for a customized form. In my case, before saving a form, a dialog might pop-up in certain conditions. Does the API provide any option to switch to the dialog and accept/ reject the dialog?
Please see the attached screenshots.
The text was updated successfully, but these errors were encountered: