Skip to content

Instantly share code, notes, and snippets.

@tophatsteve
Created June 12, 2012 10:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tophatsteve/2916858 to your computer and use it in GitHub Desktop.
Save tophatsteve/2916858 to your computer and use it in GitHub Desktop.
Control Internet Explorer with Powershell
$ie = new-object -com "InternetExplorer.Application"
$ie.visible = $true
$ie.navigate("http://localhost/Default.aspx")
$doc = $ie.document
$link = $doc.getElementByID("link_01")
$link.click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment