"cred_sign_in_button").click() not working


First off, thank you for putting this together.

I am debugging the script and I can only get it to work if I put a breakpoint on the line:
Go to the visible IE, click Sign In, then let the script continue to run.

It seems IE is not allowing the script to basically click the Sign in button. Do I have to do anything special with powershell or IE to allow this action to happen.

Thank you in advance,



knorman wrote Aug 7, 2015 at 4:43 PM

Weve been using this at work for a few months . was working great until yesterday. now when the cookie for the drive mapping expires. the script runs and I see similar behavior. the Try logic in the $ie.document.GetElementById("cred_sign_in_button").click() does not work. My guess is that the element list no longer returns the same values. so Perhaps mictosoft changed the name of the element? I'm going to look for some documentation on this call to see how I can troubleshoot it. any one have any other ideas?



magicalyak wrote Sep 28, 2015 at 9:48 PM

That could happen, the whole purpose of this script was a result of the UI changing. I'd be happy to modify to reflect but I don't have an O365 to test currently.