I can not run any UItest in Azure DEVOps where I need to open subarea, for the cases where no need to open sub-area are running in azure devops pipeline. But running locally is working fine.
{
xrmApp.Navigation.OpenApp(UCIAppName.Sales);
xrmApp.Navigation.OpenGroupSubArea("Sales", "Account");
and
xrmApp.Navigation.OpenSubArea("Sales", "Accounts");
}
above code lines for sub area are not working, tried both methods.
Getting error in Azure DevOps :
Open Group Sub Area - OpenQA.Selenium.NotFoundException: No subarea with the name 'Accounts' exists inside of 'Sales'
or
Command Start: Login - Attempt 1/5
2022-11-04T12:01:04.2013990Z BrowserAutomation Information: 10002 : Command Success: Login - 1 attempts - total execution time 10731.6961ms - Return Result: Success
2022-11-04T12:01:04.2014773Z BrowserAutomation Information: 10001 : Command Start: Initialize Unified Interface Modes - Attempt 1/5
2022-11-04T12:01:04.2015682Z BrowserAutomation Information: 10002 : Command Success: Initialize Unified Interface Modes - 1 attempts - total execution time 12497.992ms - Return Result: True
2022-11-04T12:01:04.2016482Z BrowserAutomation Information: 10001 : Command Start: Open App Sales Hub - Attempt 1/5
2022-11-04T12:01:04.2017179Z BrowserAutomation Information: 10001 : Command Start: Initialize Unified Interface Modes - Attempt 1/5
2022-11-04T12:01:04.2018013Z BrowserAutomation Information: 10002 : Command Success: Initialize Unified Interface Modes - 1 attempts - total execution time 19094.1258ms - Return Result: True
2022-11-04T12:01:04.2018978Z BrowserAutomation Information: 10002 : Command Success: Open App Sales Hub - 1 attempts - total execution time 22339.0127ms - Return Result: True
2022-11-04T12:01:04.2019712Z BrowserAutomation Information: 10001 : Command Start: Open Sub Area - Attempt 1/5
2022-11-04T12:01:04.2020497Z BrowserAutomation Information: 10004 : Command Retry: Open Sub Area - System.InvalidOperationException: Unable to click element. - Retry 2/5 initiated
2022-11-04T12:01:04.2021403Z BrowserAutomation Information: 10004 : Command Retry: Open Sub Area - System.InvalidOperationException: Unable to click element. - Retry 3/5 initiated
2022-11-04T12:01:04.2023715Z BrowserAutomation Information: 10003 : Command Failure: Open Sub Area - 3 attempts - total execution time 101652.8412ms - Return Result: System.InvalidOperationException: Unable to click element.
I can not run any UItest in Azure DEVOps where I need to open subarea, for the cases where no need to open sub-area are running in azure devops pipeline. But running locally is working fine.
{ xrmApp.Navigation.OpenApp(UCIAppName.Sales); xrmApp.Navigation.OpenGroupSubArea("Sales", "Account"); and xrmApp.Navigation.OpenSubArea("Sales", "Accounts"); }
above code lines for sub area are not working, tried both methods.
Getting error in Azure DevOps :
Open Group Sub Area - OpenQA.Selenium.NotFoundException: No subarea with the name 'Accounts' exists inside of 'Sales' or Command Start: Login - Attempt 1/5 2022-11-04T12:01:04.2013990Z BrowserAutomation Information: 10002 : Command Success: Login - 1 attempts - total execution time 10731.6961ms - Return Result: Success 2022-11-04T12:01:04.2014773Z BrowserAutomation Information: 10001 : Command Start: Initialize Unified Interface Modes - Attempt 1/5 2022-11-04T12:01:04.2015682Z BrowserAutomation Information: 10002 : Command Success: Initialize Unified Interface Modes - 1 attempts - total execution time 12497.992ms - Return Result: True 2022-11-04T12:01:04.2016482Z BrowserAutomation Information: 10001 : Command Start: Open App Sales Hub - Attempt 1/5 2022-11-04T12:01:04.2017179Z BrowserAutomation Information: 10001 : Command Start: Initialize Unified Interface Modes - Attempt 1/5 2022-11-04T12:01:04.2018013Z BrowserAutomation Information: 10002 : Command Success: Initialize Unified Interface Modes - 1 attempts - total execution time 19094.1258ms - Return Result: True 2022-11-04T12:01:04.2018978Z BrowserAutomation Information: 10002 : Command Success: Open App Sales Hub - 1 attempts - total execution time 22339.0127ms - Return Result: True 2022-11-04T12:01:04.2019712Z BrowserAutomation Information: 10001 : Command Start: Open Sub Area - Attempt 1/5 2022-11-04T12:01:04.2020497Z BrowserAutomation Information: 10004 : Command Retry: Open Sub Area - System.InvalidOperationException: Unable to click element. - Retry 2/5 initiated 2022-11-04T12:01:04.2021403Z BrowserAutomation Information: 10004 : Command Retry: Open Sub Area - System.InvalidOperationException: Unable to click element. - Retry 3/5 initiated 2022-11-04T12:01:04.2023715Z BrowserAutomation Information: 10003 : Command Failure: Open Sub Area - 3 attempts - total execution time 101652.8412ms - Return Result: System.InvalidOperationException: Unable to click element.
Please suggest. thanks