Al2
6 years agoOccasional Contributor
FindChildByXpath method is very very slow all of sudden
Hello,
I've been using FindChildByXpath method for a long time now, but lately I've noticed that this has besome very very slow in finding out the objects. These are the same programs that I've been running for more than 3-4 years. I don't know if this is the chrome version or the TC version or something else. There are some objects for which I have to use this method as there's other option available for custom angular tables.
My TC version: 14.30.3743.7 x64
Chrome version: 80.0.3987.100 (Official Build) (32-bit)
Code inside the methods looks like this, but It's just not able to locate the object on the page at all.
// Call the function let obj = page.FindChildByXPath("//button[@type='submit']", true); // Check the result if (!strictEqual(obj, null)) { // If the element was found, click it obj.Click(); }
Any help would be appreciated!
Thank you
Al2