Can anyone please tell me how to click on \"ok\" or \"cancel\" on a popup window using powershell? I am trying to automate a website using powershell, but I am new to powershell
Try something like this:
$wshell = New-Object -ComObject wscript.shell; $wshell.AppActivate('Vector RP1210 API Setup') Sleep 1 $wshell.SendKeys('%C') $wshell.AppActivate('Vector RP1210 API') Sleep 1 $wshell.SendKeys('{ENTER}')