User Code take lot of time to execute

Ask general questions here.
Posts: 3
Joined: Thu Jun 07, 2012 7:16 am

User Code take lot of time to execute

Post by mdmoeenajazkhan » Fri Jan 18, 2013 1:23 pm


I have few scripts with User Code using IF-Else condition which is of one line. I execute the script and as soon as it reachs User Code it takes lot of time to execute it.

Please suggest if there is a way to reduce the time it take on User Code.
Thanks & Regards
Md Moeen Ajaz Khan

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: User Code take lot of time to execute

Post by Ciege » Fri Jan 18, 2013 4:09 pm

Can you post your user code for us to have a look. Without seeing your code everything will just be a guess.

But, my initial guess is... Your timeouts are probably pretty high. If you are using If/Else statements, are you searching for elements in these statements? It's possibly looking for an element that doesn't exist in the if, waiting until the time out, then continuing on to the else...

But again, this is just a guess without seeing your code...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!