EkremMese1
5 months agoContributor
Performance Comparison NameMapping vs FindElement
Hello everyone,
I have came across with a Test Case where I locate the WebElement with 2 different ways.
One is with NameMapping:
OCR.Recognize(NameMapping.Sys.browser.pagePersonCreate.inputBoxAgeType).CheckText("*Years*");
The other one is with FindElement Method:
OCR.Recognize(Aliases.browser.pagePersonCreate.FindElement("//label[text()='Years']")).CheckText("*Years*");
I realzie that FindElementh Method is working way faster than NameMapping located objects.
Even TestComplete itself gave me a warning to improve the Test performance when I use NameMapping
I am curious about the opinions and experiences of yourself/
Thanks