Currently developing automation against Salesforce using LeanFT v12.54 and Visual Studio 2012 (using C#). Working with Chrome Version 80.0.3987.149 (Official Build) (64-bit). On Windows 10.
I'm building an app model for the Contracts tab within Salesforce (specifically the Contract Documents) and have noticed that most of this section is contained within an iframe, which I can identify in the dev console using xpath ("//ARTICLE[normalize-space()='Contract Documents']//IFRAME").
In my C# code I'm instantiating a new object of Web.Frame() and then calling Find() using the above xpath but it's returning false.
Other notes: If I use the LeanFT Object Identification Center tool on this page it cannot penetrate any objects within the iFrame. I've been able to capture xpaths for elements within the iframe using Chrome dev tools but when I run them in the console they don't return any matches, unless I first expand the iframe element under the Elements tab, after which my xpath will return a match.
So I'm not sure why my Find() call is failing, and I need to find a way to interact with elements within the iFrame consistently using xpaths.
Edit: I've tried changing my C# code to instantiate a new object of type Web.WebElement instead of Web.Frame and using the same xpath it's able to find it as a WebElement but not as a Frame.