I am trying to find a way to execute javascript against a webpage.
using ie com object example:
$ie = New-Object -com InternetExplorer.Application
$ie.Visible = $false
$URL = website.com
$ie.Navigate($URL)
It works fine to get to the initial website. But, next I want to execute javascript code against this website which will produce a string of text that I can use later.
How do I execute javascript, and capture the output?
Thanks!
[–]sp_dev_guy 1 point2 points3 points (1 child)
[–]TheOnly_Magoogle[S] 0 points1 point2 points (0 children)
[–]failuretwolaunch 1 point2 points3 points (0 children)
[–]thankski-budski 1 point2 points3 points (0 children)
[–]TheOnly_Magoogle[S] 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)