This certainly seems very basic problem but it has become painful to deal with.
In my script I want to wait for the page to be loaded completely and than call the function which do all processing.
So I have code something like this :
Set IE =createObject("internetExplorer.application")
IE.Sync doesn't wait for the page to be loaded completely. So function is not functioning properly.
I dont want put hardcoded wait time using Wait statement since this script is called recursively and will be huge impact on performance.