Giter VIP home page Giter VIP logo

Comments (4)

dtu11 avatar dtu11 commented on May 23, 2024

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.

dtu11 avatar dtu11 commented on May 23, 2024

Let me know if that worked for you and I will close the issue.

Thanks

from easyrepro.

sujaybarooah avatar sujaybarooah commented on May 23, 2024

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.

testcase

ScriptExecutionRecording.zip

from easyrepro.

sujaybarooah avatar sujaybarooah commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.