The XPath from Ranorex Spy is:
Code: Select all
/dom[1]//div[#'saValues']/article[3]//a[@innertext~'^ Edit\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ']
My current failing code looks like:
Code: Select all
Button button = repo.Records.FindSingle<Button>("./article[" + i.ToString() + "]//a[@innertext~'Edit']");
It says that it cannot map the element to a button. I've tried the FlexElement class as well with no luck.
Does anyone have any suggestions? Thanks!