Micro Focus QTP (UFT) Forums
How to handel IE error - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to handel IE error (/Thread-How-to-handel-IE-error)



How to handel IE error - ritesh - 05-12-2009

hi friends,

While running the script, at a specific test scenario an IE error pops up and my browser just hangs up.
I tried the following things to fix this error:
1) Increased the size of Temporary Internet Files
2) Added 'webutil.deletecookies'.

But its of no use.
Can any 1 tell me how to handel this IE error.

Below is my script:
Code:
With Browser(ManageReportsBrowser).Page(ManageReportsPage)
    .WebEdit("name:=SEARCH_NAME", "class:=input_data").Set DataTable.Value("NewReportName", dtLocalSheet)
    .Link("name:=Go!").Click
    .Image("file name:=run.gif", "alt:=Run Report").Click
End With
webutil.deletecookies
With Browser(ReportsBrowser).Page(ReportsPage)
    .WebEdit("name:=SEARCH_COND", "html tag:=INPUT").Set "(Id = 10010)"
    .Link("name:=Go!", "class:=msgo").Click
    .Link("name:=10010", "html tag:=A").Click
End With



RE: How to handel IE error - Ankur - 05-12-2009

Is it able to identify Image object properly?... Seeing the Image object properties values I doubt it.

Change run.gif to run\.gif and let me know if it works.


RE: How to handel IE error - ritesh - 05-13-2009

hi Ankur,
I'm calling this image run.gif at many places...and it is able to identify properly
Only at this place it is failing.
As u told I tried changing it to run\.gif.... but i'm still getting IE error.
One thing i observed is that IE error will not pop up when i clear the Temperory Internet Files folder.
Total number of lines in this script is around 11000+ lines and this cases some where near 8000th line....
is there any script which i can use to clear the the Temperory Internet Files folder in between?


RE: How to handel IE error - Ankur - 05-13-2009

hmmm...not sure how it is working without escaping it with back slash, because .(dot) is a part of reg-ex syntax and when it is used inside DP without \ , it is taken by reg-ex engine as expecting a character and not a dot.

Probably run it in debug mode and let me know at exactly which point is the error occurring.