question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] UCI test is unable to open the Accounts SubArea

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
8itscommented, May 3, 2023

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.

1reaction
Shakevgcommented, Apr 27, 2023

You should specify Settings file or path to it in task: EasyRepro.runsettings image

Read more comments on GitHub >

github_iconTop Results From Across the Web

[UCI XrmApp Problem] test fails when trying to open sub ...
I tried the solution mentioned but i still got the same error. I know in settings you can choose to use a hybrid...
Read more >
Test My UCI Connection - Connecting FAQ - Research Guides
If the test says that you're OFF the UCI IP range, then please either install the VPN software or troubleshoot your connection with...
Read more >
UCInetIDs | Office of Information Technology
Your UCInetID is your Single Sign-on (SSO) and electronic identification used for many online services at the University of California, ...
Read more >
UCI University Registrar - Frequently Asked Questions
How do I enroll in classes if I am unable to attend any of the SPOP (Student Parent Orientation Program) sessions? Contact your...
Read more >
Payment Info | UCI Student Housing
Online via your ZOT Account using a US bank (1) E-check (ACH) or (2) Debit or Credit card. Payment information can be stored...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found