Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handel IE error
#1
Not Solved
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
Reply
#2
Not Solved
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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
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?
Reply
#4
Not Solved
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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)