Comments (4)
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")"),
new TimeSpan(0, 0, 2),
x => { x.FindElement(By.XPath("id("alertJs-tdDialogFooter")/button[1]")).Click(); });
from easyrepro.
Let me know if that worked for you and I will close the issue.
Thanks
from easyrepro.
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.
from easyrepro.
Hi, I am closing this issue.
I have been able to resolve this by switching to DefaultContent() before selecting the button in the custom dialog.
Thanks for your assistance.
from easyrepro.
Related Issues (20)
- [BUG] <Issue Description>Sign in prompt issue getting after login in to the application HOT 1
- [BUG] <MFA Login is not working as per instruction given regarding setting up Microsoft Account. I am following all the instructions but still getting error "An Error occur entering OTC. Exception: Character is not a Base32 character.">
- [BUG] UCI test is unable to open the Accounts SubArea HOT 18
- aadtile can't be found HOT 3
- Unable to see the specflow test in Visual Studio 2019 Test Explorer HOT 4
- [HOW-TO] <Is there a build-in method for Dialog/QuickCreate to click a radio button?>
- [HOW-TO] <How can I target iFrame within QuickCreate?> HOT 2
- [FEATURE] Add instrumentation for Login with MFA HOT 1
- [HOW-TO] xrmApp.BusinessProcessFlow.SetValue() not work. HOT 1
- SubGrid.GetSubGridItemsCount HOT 1
- How to handle authentication login screen specific to a particular organization ? HOT 2
- [HOW-TO] Add Product to a Quote HOT 1
- regarding Location dialogue in CRM app HOT 15
- [BUG] On a quick create form with a multi select option set, the flyout is not closing causing cover up of additional controls.
- [BUG] EasyRepro tests on Chrome M2 Mac are really slow HOT 1
- Release Wave 2 - 2023 - few dropdown optionsets are not getting identified with data-id when the script ran in New Outlook, where in existing it works fine.
- [HOW-TO] encrypt the password in easyrepro framework. ? HOT 1
- [BUG] <Unable scroll right when column is not visible it's throwing exception>
- Why in my CRM app doesnt work this? xrmApp.Grid.OpenRecord(0); HOT 1
- Release Wave 2 - 2023 - SelectForm() is broken when the script runs with New look
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyrepro.