Author Posts

January 1, 2012 at 12:00 am

by megamorf at 2012-10-18 16:27:04

Hello everybody,

I'm trying to automate uploading logfiles to the Citrix Autosupport website. You can upload logfiles for XenDesktop, XenServer, XenApp, NetScaler and it will scan them for hundreds of known issues.

My problem is that I can't get the login button click method to work because there's a lot of javascript involved. The website is https://taas.citrix.com/AutoSupport/ and I hope you are able to help me figure out how to do it.

$ie = new-object -com InternetExplorer.Application
$ie.Navigate("https://taas.citrix.com/AutoSupport/")
while ($ie.Busy -eq $true){Start-Sleep -Milliseconds 1000}
$ie.Visible=$true
$ie.Document.getElementById("username").value = "mycitrixusername"
$ie.Document.getElementById("password").value = "supersecretpassword"
$ie.Document.getElementById("btnLogOn").Click()

Here's the login button
[quote]