powershell script to go to web site

Copper Contributor

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
$ie.ParsedHtml
$ie.Navigate("https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flnks.gd%2Fl%2FeyJhbGciOiJIUzI1NiJ9...")
$document = $ie.Document

0 Replies