XPath slow
I am using the following code in one of my projects and I am testing two different releases of our software (let's call them alpha and beta release). On the beta release this line of code executes in less than a second. On the alpha release, this line of code takes 10 seconds.
Set objField = PageObj.FindChildByXPath("//*[contains(@aria-labelledby, '" & AriaLabelValue & "')]", true)
What could be causing this line of code to take 10 seconds on the alpha release? This line of code is how we identify every field in our web application so I can't have it taking 10 seconds to find a field.
mfoster711 Thanks for the update, I'm glad your issue seems to have 'disappeard'
There are so many factors that could have caused this
- internet speed
- conflict
- wrong code
- multiple browsers
- system load
I suggest if you notice this again you open dev tools and check the network tab to check if the page and dom are loading correctly
feel free to reach out with more debug information should you encounter this issue again