QTP11 can't recognize DOM in firefox6 or firefox 12? (249 Views)
Reply
Occasional Visitor
ortal1406
Posts: 1
Registered: ‎03-20-2013
Message 1 of 2 (249 Views)

QTP11 can't recognize DOM in firefox6 or firefox 12?

hi all,

 

I'm trying to get object's properties with DOM, on WIN7.

i've tried with firefox6 , and firefos 12, and i can't get the object children, text etc.

my code in VBS:

 

Set Doc=Browser("CreationTime:=1").Page("micclass:=Page").Object.getElementsByTagName("UL")


For i=0 TO Doc.length-1
     If Doc.item(i).id="quote-lists" then
         a=Doc.item(i).childNodes(0).innerHTML
    end if
Next

 

what is the right syntax for DOM in FF???

thanks

 

 

Advisor
qtp-man
Posts: 23
Registered: ‎10-28-2012
Message 2 of 2 (242 Views)

Re: QTP11 can't recognize DOM in firefox6 or firefox 12?

Hi,

 

Please check below document for your question.

 

http://support.openview.hp.com/selfsolve/document/KM1338856

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.