microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
513 stars 285 forks source link

[HOW-TO] How to tick a checkbox in a dialog box? #1352

Open RicardoJacobsen opened 1 year ago

RicardoJacobsen commented 1 year ago

Question

How to tick a checkbox inside of a dialog box?

I have tried: xrmApp.Dialogs.SetValue(new OptionSet { Name = "Recurrence_WeekDay_1", Value = "true" }); // didn't work xrmApp.Dialogs.SetValue("Recurrence_WeekDay_1", true); // didn't work, no method to have bool parameter xrmApp.Dialogs.SetValue("Recurrence_WeekDay_1", "Yes"); // didn't work

Here is the image of the check box that I'm trying to tick as yes. image