Open kchinmay07 opened 2 months ago
kchinmay07 This is no such method, but you can implement it:
public void ClickCell(int rowIndex, int columnIndex)
{
var gridContainerXPath = AppElements.Xpath[AppReference.Grid.Container];
var cellXpath = gridContainerXPath + "//*[@row-index='{0}']//*[@aria-colindex='{1}']";
var cellLocator = By.XPath(string.Format(cellXpath, rowIndex, columnIndex);
var cell = GridContainer.Control.WaitUntilAvailable(cellLocator),
$"An error occurs trying to get control on the record {rowIndex} and cell at position {columnIndex}");
cell.Click();
Driver.WaitForTransaction();
}
Where rowIndex and columnIndex indexes from 0.
i am using EASYREPRO FRAMEWORK, visual studio
Once i search datum, in front of me only 1 record is visible
and now i want to click on main phone only( as service request is generated under this only.)
kchinmay07 As I answered Framework doesn't contain such a feature, you can implement locally or contribute and add such functionality
can you write the full command
@kchinmay07 as @Shakevg answered, there is no command in EasyRepro to click on the phone number you are highlighting in the screenshot. You need to write code in Selenium and C# to handle this behavior. You can use the code provided by @Shakevg .
Question
What is your question?
after successful login Dynamics 365 i searched a particular record using xrmApp.Grid.Search("datum") and now i want to click on "Main phone" that is 425-555-0158,
which command i should use, can someone please help.