powershell script to go to web site

Occasional Visitor

We have to check Yes or No on the website but I thought it would be a great opportunity to automate it with powershell but I am having problem trying to understand how to get it to automatically click on the element. Here is what I have so far. 


#<button class="btn no" id="noInit" type="button">No</button>
$ie = New-Object -ComObject 'internetExplorer.Application'
$ie.Visible= $true
$document = $ie.Document

0 Replies