microsoft/EasyRepro

[BUG] <Issue Description>

Opened this issue · 0 comments

Bug Report

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version
Microsoft Dynamics 365 Online Version 9.2.24091.00198 online

UCI or Classic Web
UCI (XrmApp)

Online or On Premise

  • Online

Browser
Chrome

Describe the bug
When an optionset field is locked/readonly, the app is unable to find it

Special formatting / display
No. Regular Optionset field that is set to ReadOnly.

Code to reproduce
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);
xrmApp.Navigation.OpenApp(UCIAppName.Fieldboss);

 xrmApp.Navigation.OpenSubArea(Area, SubArea);
 xrmApp.Grid.Search(searchText);
 xrmApp.ThinkTime(1000);
 xrmApp.Grid.HighLightRecord(0);
 xrmApp.ThinkTime(2000);

 xrmApp.Entity.SelectTab("Service");
 xrmApp.ThinkTime(3000);

 Field field = xrmApp.Entity.GetField(lockedfieldname);
 var fieldIsReadOnly = field.IsReadOnly;
 
 var approveSaField = xrmApp.Entity.GetValue(new OptionSet { Name = lockedfieldname });}

-->

Expected behavior
The optionset field should be found and value should be read.

Screenshots
Image

Additional context
The readonly field at the bottom of the screenshot, that is an optionset field, and is not recognized by easyrepro.
Using F12, the optionset dataid reads as lockedfield.fieldControl-pcf-container-id, instead of the expected optionset control.