mfoster711
4 years agoRegular Contributor
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.
Did you try adding UTF-8 to this path?
"%SOAPUI_HOME%"\bin\SoapUI-X.0.0.vmoptions and add
"-Dfile.encoding=UTF8"
Save the file and restart ReadyAPI again. To check whether it is updated :-
Go to ready API - Help --> System Properties --> file.encoding