Getting run error passing a Frame into a user defined function!!! - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Getting run error passing a Frame into a user defined function!!! (/Thread-Getting-run-error-passing-a-Frame-into-a-user-defined-function) |
Getting run error passing a Frame into a user defined function!!! - sepgs2004 - 03-30-2009 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") 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 RE: Getting run error passing a Frame into a user defined function!!! - anil2u - 10-14-2013 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 |