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.innerhtmlunderstanding 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&a_ppl=st&f_ormmnemonic=wrgs&cmp=f22.154_201&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
Post a Comment