microsoft / EasyRepro

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

[BUG] Unable to GetValue from statuscode field #1281

Open SJFellowmind opened 2 years ago

SJFellowmind commented 2 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

When trying to get value from the statuscode field a null exception is thrown

Code to reproduce

Assert.AreEqual("Løst", _xrmApp.Entity.GetValue(new OptionSet { Name = "statuscode" }));

-->

Expected behavior
Get the value of the statuscode field

Screenshots
The field is on the form image

Additional context
BrowserAutomation Information: 10001 : Command Start: Get OptionSet Value: statuscode - Attempt 1/5 BrowserAutomation Information: 10004 : Command Retry: Get OptionSet Value: statuscode - OpenQA.Selenium.WebDriverException: target frame detached (Session info: chrome=99.0.4844.82) - Retry 2/5 initiated BrowserAutomation Information: 10004 : Command Retry: Get OptionSet Value: statuscode - System.NullReferenceException: Object reference not set to an instance of an object. - Retry 3/5 initiated BrowserAutomation Information: 10003 : Command Failure: Get OptionSet Value: statuscode - 3 attempts - total execution time 80162,2156ms - Return Result: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.TryGetValue(IWebElement fieldContainer, OptionSet control) at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.<>c__DisplayClass142_0.b__0(IWebDriver driver) at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand1.ExecuteCommand(IWebDriver driver, Object[] params) at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand1.Execute[T1,T2,T3,T4,T5,T6,T7,T8,T9](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9)