标签:powershell
$ie = new-object -com "InternetExplorer.Application"
$ie.navigate("http://www.news.baidu.com/")
$ie.visible = $true
sleep -milliseconds 2500
$ID = $ie.Document.getElementById(‘focus-top‘)
$ID1 = $ID.getElementsByTagName(‘li‘)
$ID2 = $ID1 | where {$_.className -contains "hdline0"}
$ID2.innerText标签:powershell
原文地址:http://6124856.blog.51cto.com/6114856/1589632