Я пишу скрипт, автоматизирующий бесполезные задачи на работе. Обычно все в порядке, но иногда запускается JavaScript для загрузки определенных c страниц, и тогда все мои документы пусты.
Пример:
$Page = New-Object -ComObject «InternetExplorer.Application»
...
$frame = $Page.document.frames
...
# The script navigates well, set some values get others everything is fine and then:
$frame.item(3).IHTMLDocument3_getElementById(«oAff1»).children[0].(...).click()
# It does the click, the browser loads the new page and:
$frame.item(3).document
# Returns nothing, it seems to load in IE but not for Powershell who still see a white page.
Есть идеи?