Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having issues getting QTP 10 to recognise an IE frame via DP
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
If this matches more than one object, I can see how that would return a general run error. QTP is not very helpful with errors related to the use of descriptive programming. Try doing this instead:

Code:
Set frameObjectDesc = Description.Create
frameObjectDesc("micclass").value = "Frame"
frameObjectDesc("name").value = "header"
set children=Browser(browserObjectDesc).Page(pageObjectDesc).ChildObjects(frameObjectDesc)
if children.count = 1 then
    <do whatever you would normally do here>
else
    Reporter.ReportEvent micFail, ... (or whatever you want to do here)
end if
set a breakpoint on the line of code after "set children=..." and examine "children.count". My guess is that children.count here is either 0 or > 1. Try that and see if that shows you anything useful.

I'm guessing your code didn't find your frame at all, or it found several matches.
Reply


Messages In This Thread
RE: Having issues getting QTP 10 to recognise an IE frame via DP - by tdevick - 08-05-2011, 09:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Webtable objects recognise as weblist in UFT 12.5 Sharad Kumar 0 1,163 12-06-2018, 04:57 PM
Last Post: Sharad Kumar
Smile I am not getting links under a frame deveshbhatt29 1 2,042 05-29-2014, 05:07 PM
Last Post: Ankur
  QTP Not Able to recognise the object in window application. Sudipta Gusain 4 4,799 04-17-2013, 07:35 PM
Last Post: Benak
  Frame Work venkat369 0 2,428 01-21-2011, 01:54 AM
Last Post: venkat369
  Not able to recognise browser Supriya3072 1 2,160 09-08-2010, 01:21 AM
Last Post: cdesserich

Forum Jump:


Users browsing this thread: 4 Guest(s)