Page 1 of 1

optimize the time taken for element recognition

Posted: Fri May 03, 2019 11:01 am
by Punashri M S
Hello,

we are evaluating Ranorex for web application.

the script is taking lot of time to recognise the elements because of which the script is taking double the time of execution compared to the manual execution.

can anyone help me to understand, how to optimise the time taken for element recognition ?

thanks in advance.

Re: optimize the time taken for element recognition

Posted: Fri May 03, 2019 11:15 am
by odklizec
Hi,

In order to help you with this kind of issue, we basically need two things:
- an example of "slow to recognize" xpath (full xpath, as stored in repo or used in code)
- a Ranorex snapshot (NOT screenshot) of app under test, where we can evaluate the UI and xpath you provided

Without these two crucial details, all anyone here can do, is to provide only some general suggestions. For example, the speed of element recognition highly depends on the quality of used xpath. If the xpath is too general or too short, it may take some time to find the matching element. Xpaths with unique IDs are generally faster to find, than those with indexes. Also, to improve the speed of search, you can add your application to the white list, which means, the xpath will be searched only in the whitelisted process and not actually running apps.