I have an issue with the shell.application com object and IE9.
This code:
Works perfectly for IE8, but not for IE9.
What am I doing wrong?
This code:
Code:
set-variable win (New-Object -comObject shell.Application) -Scope Global
set-variable handle ((Select-Window -Title $window).handle ) -Scope Global
set-variable IE (@($win.windows() | ? { $_.HWND -eq $handle})[0]) -Scope Global
Works perfectly for IE8, but not for IE9.
What am I doing wrong?