It depends entirely on how the web page is designed. Normally, click() is the right method. However, since here the element is defining a JS response to click(), you could potentially try just calling that JS directly. It's going to be tricky, though, and you might not be able to get it to work. The IE COM object just wasn't designed for this kind of manipulation, and the fact that it has to go through .NET Interop into PowerShell makes it even more difficult. IE just wasn't designed with this kind of automation in mind. If sending a click() to the element didn't work, then you may be stuck.
The topic ‘Log out of Web Page using Powershell’ is closed to new replies.