Automate IE to get info from site's page, contained within a dynamically created iframe.


i've written other ie automation scripts using com in powershell.  as of now, can navigate url of choosing, can input password , .click() submit button. page loads 3 frames. verified .length of:

$frames = $ie.document.frames

i verified in ie's dom explorer, when "inspecting" elements.  i grab specific frame doing:

$iframe = $ie.document.getelementsbytagname("iframe") | ?{$_.title -eq "webadvisor"}

the issue when doing a:

$iframe.document.body.innerhtml

i'm getting same info if did:

$ie.document.body.innerhtml
understanding should getting what's in frame.  the issue getting same parent doc not show text in iframe.  from seeing page itself, gets created dynamically using info database.  

the parent page remains same @ times, when selection made, updates frame. example, "a" tag 1 such link:

<a href="pageservlet?pg=webadvisoriframeproxy&amp;a_ppl=st&amp;f_ormmnemonic=wrgs&amp;cmp=f22.154_201&amp;cx=22.154">*return registration selections</a>
pageservlet parent page. 

in line:

$iframe = $ie.document.getelementsbytagname("iframe") | ?{$_.title -eq "webadvisor"}

is $iframe being populated object values?


thanks, tim. | please remember mark replies answers if help. |



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

DCOM received error "2147746132" from...

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B

DFSR RPC replication errors 5014 1726 with large files over VPN