microsoft / EasyRepro

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

Change Area Within UCI App #817

Closed rbasten closed 4 years ago

rbasten 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

Hi,

I want to check if all entities still are displayed in an app. The app contains 2 "Area's":

By default the App opens in the area Stock Management and I can check all entities by using xrmApp.Navigation.OpenSubArea("Stock Management", "EntityA"); xrmApp.Navigation.OpenSubArea("Stock Management", "EntitiyB"); When I Try to Open Entity C on the Settings Area by using xrmApp.Navigation.OpenSubArea("Settings", "Reports"); the test failes with the following error:

image

Unable to click element Stacktrace: " at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.<>c.b__4_1(IWebDriver e) in C:\-= Tools =-\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 80\r\n at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntilClickable(IWebDriver driver, By by, TimeSpan timeout, Action1 successCallback, Action1 failureCallback) in C:\-= Tools =-\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 736\r\n at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.ClickWhenAvailable(IWebDriver driver, By by, TimeSpan timeout) in C:\-= Tools =-\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 72\r\n at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.ClickWhenAvailable(IWebDriver driver, By by) in C:\-= Tools =-\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 66\r\n at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.<>c.b__24_0(IWebDriver driver) in C:\-= Tools =-\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Api.UCI\WebClient.cs:line 457\r\n at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand1.ExecuteCommand(IWebDriver driver, Object[] params) in C:\\-= Tools =-\\EasyRepro-develop\\Microsoft.Dynamics365.UIAutomation.Browser\\DelegateBrowserCommand.cs:line 29\r\n 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) in C:\-= Tools =-\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Browser\BrowserCommand.cs:line 192"

rbasten commented 4 years ago

Fixed By Adding ChangeAreas Code