microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
523 stars 289 forks source link

[BUG] Optionset field '***' does not exists #1428

Open Zannpo opened 3 months ago

Zannpo commented 3 months ago

Bug Report

I keep getting an error that Option Set field doesnt exist. It exists on the form. I keep checking its Xpath but for some reason UCI cant find it and Im unable to set or get its value.

EasyRepro Version

UCI or Classic Web

Online or On Premise

Browser

xrmApp.Entity.SetValue(new OptionSet() { Name = "nameofthefield", Value = "valuewhichisthere" });

don-matese commented 2 months ago

Having the same issue with the new look enabled, if I disable the new look (revert to the old UCI interface) then it works as expected.

Zannpo commented 2 months ago

With the new look I've found the option set by using xpath for data-id='{controlName}.fieldControl-option-set-select'. So the new look clearly uses a different xpath than the old one. The framework needs an official fix for this type of field but my case is now solved