I’ve a gird in AUT which is recognized as 'VSFlexGrid8L' whose RXPath is (“element[@instance='0']/element[@instance='0']/element[@instance='1']/element[@instance='0' and @class='VSFlexGrid8L']”). So in order to click on a particular Item cell, I’m using the following code
RawText itemToClick = objAccounts.FormUserAccounts.
UserAccountsGrid.FindDescendant<RawText>(newUserName);
itemToClick.Click();
When Icall the same above call (FindDescendant<RawText>(newUserName)) for 2nd time down the line of same script, the application under test crashing. Could you please help me to know why this happens and any solution?
Regards,
Mohan