web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

[June 2022] EasyRepro - Grid.OpenRecord() not working

(0) ShareShare
ReportReport
Posted on by

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.
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 152

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 73 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans