userdanfoss
5 years agoOccasional Contributor
Findchildbyxpath in testcomplete
I am trying to click on the object which appears when we do mouse hover.
But i am not able to click on it.
Testcomplete fails to capture the unique object with recording so i am using xpath .
please see below eg.
NameMapping.Sys.browser.pagePlus1Connect3.panelRoot.panel.panel.panel.panel.panel.panel.panel.panel.HoverMouse();
let widconfig = page.FindChildByXPath("//span[@title='Widget configuration']",true);
obj.Click();
Now here widconfig.Click() is not allowed. I am getting the error
That means the standard Click is not implemented but a custom click.
Try .click() instead of .Click()
Or try a low-level click