07-03-2012, 02:33 PM
Hi
I've written a script which sets a timing variable and records how long it takes to get to specific points in the script. It works fine on the PC that I wrote the script on, but on two other PCs, the execution of the script is so slow moving from line to line, it is throwing out the results by a significant margin.
Anyone got any ideas why the script should be running so slowly on comparible PCs - same spec and more importantly how I can resolve this.
Here's a snippet of the code:
Many thanks from a first time poster!
Martin :-)
I've written a script which sets a timing variable and records how long it takes to get to specific points in the script. It works fine on the PC that I wrote the script on, but on two other PCs, the execution of the script is so slow moving from line to line, it is throwing out the results by a significant margin.
Anyone got any ideas why the script should be running so slowly on comparible PCs - same spec and more importantly how I can resolve this.
Here's a snippet of the code:
Code:
Browser("Process Workplace").Page("Process Workplace_2").WbfGrid("ctl00_cpMainContent_ucWorkItem").ClickCell 5,4
StartTime = Time()
'Keep looping until the load process has completed.
Do Until Browser("Process Workplace_2").Page("Process Workplace").Frame("formframe").WebElement("Underwriting WorkflowcloseLoad").GetROProperty("height") = 0
Loop
'Record Times.
LoadCompletionTime = Time()
TimeToLoad = DateDiff("S", StartTime, Time())
Martin :-)