Southpaw
6 years agoContributor
Need help with .Find method, and explicitly locating web objects without NameMapping
Hello all,
I am coming from the world of UFT. I am watching a video series on TestComplete. From an example I am trying to use the Find method to click on an object. My test fails with the error Unable to find the object Sys.Browser....
I have been able to use ObjSpy on this open IE browser to get the property and property value I want the script to locate. So I know - or, atleast it seems TC can see the browser since I can spy objects. So why it fails when i run the test is confusing me. here is my code:
function Test2()
{
pbi = Sys.Browser("iexplore").Page("https://app.powerbigov.us/home").Find("contentText", "Workspaces", 60, True);
pbi.Click();
}
Pretty simple.
Any help w this is appreciated.