Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

IE: infinitive loop of frames

$
0
0

I have a document produced bu JSP which is contained in a frameset, applicationframe and architectureframe.

Following my code

 

$frms = @($ie.document.getElementsByTagName("FRAME"))

$frms.count

2   

 comment   that’s OK

 

$frms[0].Name

$frms[1].Name

ArchitectureFrame

ApplicationFrame

comment   that’s OK

 

but the Application Frame contains a frameset !!!

 

$frms2 = @($frms[1].Document.getElementsByTagName("FRAME"))

$frms2[0].Name

$frms2[1].Name

 

ArchitectureFrame

ApplicationFrame

comment   is this OK ?

 

but the Application Frame again contains a frameset !!!

 

$frms3 = @($frms2[1].Document.getElementsByTagName("FRAME"))

$frms3[0].Name

$frms3[1].Name

 

ArchitectureFrame

ApplicationFrame

comment   what ??????

 

and again and again,

any clue ???

thx a lot

Eryk


Viewing all articles
Browse latest Browse all 6937

Trending Articles