microsoft / EasyRepro

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

[BUG] PowerApps Control Framework Is not read #956

Open adrian-johnson-vanguard opened 4 years ago

adrian-johnson-vanguard commented 4 years ago

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

UCI or Classic Web

Online or On Premise

Browser

Describe the bug
PCF Fields are not recognized and through a NullReferenceException when accessed.

Special formatting / display
Controls include a two option as a switch and Optionsets as multiple buttons

Code to reproduce

xrmApp.OnlineLogin.Login(_xrmUri, _username, _password);

xrmApp.Navigation.OpenApp(UCIAppName.Sales);

xrmApp.Navigation.QuickCreate("contact");

var val = xrmApp.QuickCreate.GetValue(new OptionSet() { Name = "name" });

xrmApp.QuickCreate.Save();

Expected behavior

It should retrieve the value of the PCF field, though it sends a NullReferenceException.

Screenshots
image image image

Additional context

Attempted to add packages and multiple methods of accessing the fields including:

xrmApp.Entity.GetValue(new OptionSet { Name = "name" });
xrmApp.Entity.GetValue("name");
Shakevg commented 4 years ago

@adrian-johnson-vanguard For Power app (canvass app) controls you should use a custom implementation

Per https://github.com/microsoft/EasyRepro#crm-functionality-not-covered CRM Functionality Not Covered