Slow replay when replaying automation scripts

Class library usage, coding and language questions.
motanweer
Posts: 1
Joined: Fri Oct 11, 2013 9:46 am

Slow replay when replaying automation scripts

Post by motanweer » Fri Oct 11, 2013 10:30 am

Hi

First of all, I need to indicate that I am using Ranorex with a c# based solution. I am not using a repository. I identify the objects at run time and am using the ranorex api.
The problem that I am facing is that the replay, especially when selecting from a dynamically created (via javascript) drop down list is slow, even when 1 or 2 items exist in the list. The control is on a web page.
How can I speed up the list?

I have already put the following code in the contsructor:

Ranorex.Mouse.DefaultMoveTime = 30;
Ranorex.Keyboard.DefaultKeyPressTime = 1;
Ranorex.Delay.SpeedFactor = 1.0;


Here is what I try to do. The list appears as a table on the web page:

1.
I select the drop down list, a javascript builds a dynamic list:
/dom[@domain='somewebsite.com']//table[#'DivTable']//..//textarea[#'arid_WIN_0_710000362']


2.
I select the frame containing the list:
/dom[@domain='somewebsite.com']//../body/div[3]


3.
then I select the item in the list (1 of 2)
/dom[@domain='somewebsite.com']//../body/div[3]/div[2]/table/tbody/tr[2]/td[@innertext='Password Reset']


I had to put in step 2, because when I replayed back my script, it built the dynamic list but didn't reach step 3. Now it does however, its slow.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Slow replay when replaying automation scripts

Post by krstcs » Fri Oct 11, 2013 1:23 pm

Can you post the actual C# code you are using? Without that, there is really no way to know what the problem is.
Shortcuts usually aren't...

mzperix
Posts: 137
Joined: Fri Apr 06, 2012 12:19 pm

Re: Slow replay when replaying automation scripts

Post by mzperix » Mon Mar 10, 2014 12:27 pm

Hi,

Did you try to run the script without the attached deugger? THis made our scripts run way more faster.

Regards, Zoltan