Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <Issue Description> #1436

Open
dirasmitabasu opened this issue Oct 9, 2024 · 0 comments
Open

[BUG] <Issue Description> #1436

dirasmitabasu opened this issue Oct 9, 2024 · 0 comments
Labels

Comments

@dirasmitabasu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant