Open SJFellowmind opened 2 years ago
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
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)
1.ExecuteCommand(IWebDriver driver, Object[] params) at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand
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
-->
Expected behavior
Get the value of the statuscode field
Screenshots![image](https://user-images.githubusercontent.com/102236807/159718073-6224792e-a9de-4301-af58-77b81996596e.png)
The field is on the form
Additional contextb__0(IWebDriver driver)
at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand
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.
1.ExecuteCommand(IWebDriver driver, Object[] params) at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand
1.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)