Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser("b").Exist(0) is slow
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
hello,

I install recently QTP11.
i've noticed that when I check the exitance of the browser it seems to run very slow (my IE is not open):
x=Browser("b").Exist(0) - 5 Seconds!!!!

When my IE is open, it's run very fast - 0.03 seconds (even if the command return flase)

what should i do?

Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Any idea??
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Same issue we discussed few weeks ago in another thread.

RE: Time Delay issue with Exist
Hi Lorena, i also faced this issue yesterday.

when i was trying to analyse why ...this is what i have found...
Do note that it is nothing to do with obj sync timeout property.


Code:
Msgbox Browser("CreationTime:=0").Exist(0)

No of browsers open = 0
Here i was expecting to timeout in 0 seconds to return false ..but it took around 5 seconds.


Code:
Msgbox Browser("CreationTime:=0").Exist(5)

No of browsers open = 0
Here i was expecting to timeout in 5 seconds to return false ..but it took around 10 seconds. (adds approx 5 seconds)

when u have a browser open, it returns true @ once w/o any wait.

Instead of creation, i also tried with other properties, the behavior is same.

Code:
Msgbox Browser("CreationTime:=0").Page("micclass:=Page").WebEdit("name:=userid").Exist(0)

No of browser open = 1 or > 1
no webedit in that name.
it reurns false w/o any wait.

So, Exist gets timeout as expected only atleast one browser is open. if not, it takes additional time.





Currently, i have overriden Browser exist method using RegisterUserFunc.
ie, only if the no of the browsers open > 0, it will use browser's Exit method. if no browser's open, no need to call browser exist and it will return false at once.

Hope you have got the idea now.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  System work slow with UFT 12.02 elyanivson 0 2,768 02-10-2015, 05:09 PM
Last Post: elyanivson
  Browser - Child objects method is very very slow prasperl 0 2,059 11-12-2014, 12:59 AM
Last Post: prasperl
  UFT 11.5 Slow ankit.saini 2 4,610 06-25-2014, 10:29 PM
Last Post: ankit.saini
  Getting error - "The remote server machine does not exist or is unavailable" harshit_kohli 0 4,676 06-22-2013, 04:55 PM
Last Post: harshit_kohli
  QTP runs slow when scheduled through a Virtual Machine BajaJeff 3 5,332 06-11-2013, 02:45 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)