Jump to content
oemript

How to code it using Powershell Script?

Recommended Posts

oemript

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

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

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


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

×