2010-10-26 6 views
3

Il est possible d'automatiser Silverlight avec PowerShell? Je veux contrôler Silverlight, boutons de presse, etc.Est-il possible d'automatiser Silverlight avec PowerShell?

Comme automatisation avec le IExplorer:

$ie = New-Object -ComObject InternetExplorer.Application 
$ie.Navigate("http://www.stackoverflow.com") 
$ie.Document.getElementById("ButtonID")|foreach{ 
     $_.Click() 
} 

Répondre

0

Certaines DLL ne fonctionneront pas dans une application Silverlight. Si vous voulez la présentation de Silverlight avec toutes les fonctionnalités de .NET, alors je suggère d'utiliser WPF à la place.

Questions connexes