08-04-2011, 06:35 PM
Hi there, have been using QTP for some time and am fairly happy that I understand the principles of DP and how QTP references objects using the DOM.
My current issue is related to trying to recognise a frame using DP (I have previously done this using the OR without an issue).
I have written the following object to try and recognise my frame object.
My actual code has a select case block to change the name parameter - but I have confirmed that code is working correctly and setting the correct parameter value. I can also confirm that these properties are exactly the same as the ones which the OR is using to correctly identify the frame.
On trying to check the existence of this frame using:
I am getting a General Run Error reported. The error number being reported for this error is -2147467259 - but all google searches I have tried for this error number seem to be related to database issues which don't seem particularly relevant in this situation.
I have searched all over to try and discover the solution to this issue, but nothing has really shed any light on it. Can anyone here help me out?
My current issue is related to trying to recognise a frame using DP (I have previously done this using the OR without an issue).
I have written the following object to try and recognise my frame object.
Code:
Set frameObjectDesc = Description.Create
frameObjectDesc("micclass").value = "Frame"
frameObjectDesc("name").value = "header"
My actual code has a select case block to change the name parameter - but I have confirmed that code is working correctly and setting the correct parameter value. I can also confirm that these properties are exactly the same as the ones which the OR is using to correctly identify the frame.
On trying to check the existence of this frame using:
Code:
Browser(browserObjectDesc).Page(pageObjectDesc).Frame(frameObjectDesc).Exist(0)
I am getting a General Run Error reported. The error number being reported for this error is -2147467259 - but all google searches I have tried for this error number seem to be related to database issues which don't seem particularly relevant in this situation.
I have searched all over to try and discover the solution to this issue, but nothing has really shed any light on it. Can anyone here help me out?