Jump to content

How to code it using Powershell Script?

Recommended Posts


I would like to know on how to code following task in PowerShell Script.

$oIE = _IECreate("Google.com")
$oInput = _IEGetObjById($oIE,'lst-ib')

$sXpath = "//li[@class='sbsb_c gsfs')]//div[@class='sbqs_c']"
$aReturnResults = BGe_IEGetDOMObjByXPathWithAttributes($oIE,$sXpath,5000)
For $i = 0 To UBound($aReturnResults)-1
    ConsoleWrite($aReturnResults[$i].Innertext & @CRLF)

Does anyone have any suggestions?
Thanks in advance for any suggestions


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now