Quantcast
Channel: Internet Explorer 8, 9, 10, 11 forum
Viewing all articles
Browse latest Browse all 10469

Powershell getElementById() not working with IE11‏ security

$
0
0

Dear IE team,

The following code which I initially found not working and also confirmed by MVP Chen V, returns null with IE11 on Win 2012 server (post in Powershell forum):

"

Vote                           

May be not related but just give a try by enabling compatibility view in your Win 2012 browser

"Strange in either way its working for me. This is definite IE settings issue.

give a try with below code

$url ="http://www.facebook.com"
$username="emailid"
$password="password"
$ie =New-Object-com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);while($ie.ReadyState-ne 4){Start-Sleep-Milliseconds1000;}
$ie.Document.getElementById("email").value = $username 
$ie.Document.getElementByID("Pass").value=$password 
$ie.Document.getElementById("loginbutton").Click();


Regards Chen V [MCTS SharePoint 2010]

"

We suspect it was due to default IE security setting, but I was not able to make it work after

1) enable compatibility setting for facebook.com

2) disable IE Protected mode

Please help with this problem!

Bob


Viewing all articles
Browse latest Browse all 10469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>