Specify IE document mode in PowerShell -


$ie = new-object -comobject 'internetexplorer.application' $ie.visible= $true $ie.navigate("https://foo.example.com/login") 

how can force new instance of ie in document mode edge or 10?

by default loads site in document mode 5 , 7.

apparently first $ie.document should query documentmode , compatmode. but, querying $ie.document powershell thedocumentmode property not exposed. getting compatmode possible, setting isn't. think not possible powershell. (probably developer tools mode authorized in terms of com objects more properties)


Comments