2016-06-15 1 views
2

私はPowerShellを使用してWebページにログインしようとしていますが、ボタン「サインイン」が次のようにコーディングされます、私は絵の上に、したがって、クリックできるようにするPowerShellで使用する必要がありますどのような機能PowerShellを使用してイメージをクリックするにはどうすればよいですか?

<input type="image" src="http://tolimages.traderonline.com/i... alt="Sign In"> 

ログイン?

ありがとうございました!

答えて

0

これを試してみてください:

$url = "http://xxxxxxxxxx/" 
$ie = New-Object -ComObject InternetExplorer.Application 
$ie.Visible = $true 
$ie.Navigate($url) 
While ($ie.Busy) { Start-Sleep -Milliseconds 400 } 
$Link = $ie.document.getElementsByTagName("input") | where-object {$_.type -eq "image"} 
$Link.click(); 
関連する問題