optimize the time taken for element recognition

Ask general questions here.
Punashri M S
Posts: 35
Joined: Tue Jan 30, 2018 12:56 pm

optimize the time taken for element recognition

Post by Punashri M S » Fri May 03, 2019 11:01 am

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5330
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: optimize the time taken for element recognition

Post by odklizec » Fri May 03, 2019 11:15 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration