Hmm nice use of PowerShell. Reminds me a bit of Watir... :-)

Kind regards,

Daniel

2010/6/10 Dan Winsor <[email protected]>:
> Thanks, all of your responses put me on the right track.  In case
> anyone wants to give it a whirl, PowerShell can do the following:
>
> $url = "http://<server>/ccnet/server/local/project/<project>/
> ViewProjectReport.aspx"
> $ie = New-Object -com internetexplorer.application;
> $ie.visible = $false;
> $ie.navigate($url);
> while ($ie.Busy -eq $true)
> {
>    Start-Sleep -Milliseconds 1000;
> }
> $ie.Document.getElementById("ForceBuild").Click();
> while ($ie.Busy -eq $true)
> {
>    Start-Sleep -Milliseconds 1000;
> }
>
> $ie.quit()
>
> Again, much appreciated all.
>

Reply via email to