EasyRepro: [BUG] UCI test is unable to open the Accounts SubArea
EasyRepro Version
- Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
- Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
- Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
- Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online
UCI or Classic Web
- UCI (XrmApp)
- Classic Web (XrmBrowser)
Online or On Premise
- Online
- On Premise
Browser
- Chrome
- Firefox
- IE
- Edge
Describe the bug
I´ve run the UCITestOpenActiveAccount test successfully in my local VS. I´ve associated this test to a Test Case in a DevOps project. Then I have a pipeline that runs the Test Case using Visual Studio Test. I get the following error:
BrowserAutomation Information: 9000 : BrowserInitialized invoked.
BrowserAutomation Information: 9001 : BrowserInitialized completed.
BrowserAutomation Information: 10001 : Command Start: Login - Attempt 1/5
BrowserAutomation Information: 10002 : Command Success: Login - 1 attempts - total execution time 14357.6912ms - Return Result: Success
BrowserAutomation Information: 10001 : Command Start: Initialize Unified Interface Modes - Attempt 1/5
BrowserAutomation Information: 10002 : Command Success: Initialize Unified Interface Modes - 1 attempts - total execution time 15074.0335ms - Return Result: True
BrowserAutomation Information: 10001 : Command Start: Open App Sales Hub - Attempt 1/5
BrowserAutomation Information: 10001 : Command Start: Initialize Unified Interface Modes - Attempt 1/5
BrowserAutomation Information: 10002 : Command Success: Initialize Unified Interface Modes - 1 attempts - total execution time 25190.825ms - Return Result: True
BrowserAutomation Information: 10002 : Command Success: Open App Sales Hub - 1 attempts - total execution time 25750.4388ms - Return Result: True
BrowserAutomation Information: 10001 : Command Start: Open Sub Area - Attempt 1/5
BrowserAutomation Information: 10004 : Command Retry: Open Sub Area - System.InvalidOperationException: Unable to click element. - Retry 2/5 initiated
BrowserAutomation Information: 10004 : Command Retry: Open Sub Area - System.InvalidOperationException: Unable to click element. - Retry 3/5 initiated
BrowserAutomation Information: 10003 : Command Failure: Open Sub Area - 3 attempts - total execution time 100722.0422ms - Return Result: System.InvalidOperationException: Unable to click element.
at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.<>c__DisplayClass52_0.<WaitUntilClickable>b__0() in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 520
at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntil(ISearchContext driver, Func`2 searchFunc, Nullable`1 timeout, Action`1 successCallback, Action failureCallback) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 582
at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable`1 timeout, Action`1 successCallback, Action failureCallback) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 528
at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable`1 timeout, Action`1 successCallback, String exceptionMessage) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 520
at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.ClickWhenAvailable(ISearchContext driver, By by, Nullable`1 timeout, String errorMessage) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs:line 43
at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.GetSubAreaMenuItems(IWebDriver driver) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Api.UCI\WebClient.cs:line 722
at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.TryOpenSubArea(IWebDriver driver, String subarea) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Api.UCI\WebClient.cs:line 561
at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.<>c__DisplayClass34_0.<OpenSubArea>b__0(IWebDriver driver) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Api.UCI\WebClient.cs:line 525
at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand`1.ExecuteCommand(IWebDriver driver, Object[] params) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\DelegateBrowserCommand.cs:line 28
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) in D:\a\1\s\Microsoft.Dynamics365.UIAutomation.Browser\BrowserCommand.cs:line 103
BrowserAutomation Information: 9000 : BrowserDisposing invoked.
BrowserAutomation Information: 9001 : BrowserDisposing completed.
I´m trying to run the following code:
public void UCITestOpenActiveAccount()
{
var client = new WebClient(TestSettings.Options);
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);
xrmApp.Navigation.OpenApp(UCIAppName.Sales);
xrmApp.Navigation.OpenSubArea("Sales", "Accounts");
xrmApp.Grid.SwitchView("All Accounts");
xrmApp.Grid.Search("A. Datum");
xrmApp.Grid.OpenRecord(0);
xrmApp.ThinkTime(3000);
}
}
All packages have been updated to the latest stable version.
Expected behavior
Finish the test successfully
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (7 by maintainers)
Oh my gosh! You won’t believe it.
I’ve found this question, and now my pipeline is working after adding a task to resize the screen.
Thank you for your help, after all I’ve learned several things.
You should specify Settings file or path to it in task: EasyRepro.runsettings