Hi all,
For the following code in EasyRepro :
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Dynamics365.UIAutomation.Api.UCI;
using Microsoft.Dynamics365.UIAutomation.Browser;
namespace EasyRepro
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void certificateManagementTest()
{
var Options = new BrowserOptions
{
BrowserType = BrowserType.Chrome,
FireEvents = false,
UserAgent = false,
DefaultThinkTime = 2000,
UCITestMode = true
};
var username = "****@******.com";
var password = "******";
var xrmUri = new Uri("https://*******.crm.dynamics.com/");
var client = new WebClient(Options);
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(xrmUri, username.ToSecureString(), password.ToSecureString());
xrmApp.Navigation.OpenApp("Field Service");
xrmApp.Navigation.OpenSubArea("Service","Accounts");
xrmApp.Grid.OpenRecord(1);
}
}
}
}
The xrmApp.Grid.OpenRecord(1) is throwing the following error :
An exception of type 'OpenQA.Selenium.NoSuchElementException' occurred in Microsoft.Dynamics365.UIAutomation.Browser.dll but was not handled in user code
Additional information: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@data-lp-id,'MscrmControls.Grid')]"}
(Session info: chrome=102.0.5005.115)
Nuget EasyRepro Version :
Dynamics365.UIAutomation.Api -Version 9.2.21084.148
I am able to reach out until Accounts view, but not able to proceed further.
Kindly Guide.

Report
All responses (
Answers (