Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting run error passing a Frame into a user defined function!!!
#1
Not Solved
I have defined a function "DoesServerReportedErrors" that accepts a "frame" parameter.
I am passing a frame as below:

Code:
Set frame= Browser("Browser").Page("Page").Frame("Frame")
isErrorReported=DoesServerReportedErrors(frame)
If isErrorReported="Y" Then
    Reporter.ReportEvent micFail, TestActionName(), "Could not perform..."
    ExitActionIteration("N")
Else
    ExitActionIteration("Y")
End If

While running the test, I am getting an error at this Set statement; Error says:
General run error.
Line (2): "Set frame= Browser("Browser").Page("Page").Frame("Frame")".


Does anyone see what is happening?
Thanks
Reply
#2
Not Solved
Hi can you change the name of the object to something like frame1, frame2 or so... It's trying to override the general frame class i guess.

Cheers,
Anil
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 592 11-05-2023, 03:55 PM
Last Post: lravi4u
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 965 09-11-2019, 02:52 PM
Last Post: siddharth1609
  How to get input from the user in QTP? shanthiK 10 18,582 08-07-2017, 11:34 PM
Last Post: zunebuggy
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,793 05-04-2017, 03:52 PM
Last Post: Ankur
  Calling a function in a Test Script from a function library anupam4j 3 6,127 06-26-2015, 12:31 AM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)