Powershell noob here, it seems like this should be easy but I can't figure it out. I'm trying to have my script click on a login button on the home page of a brokerage:
$login = Invoke-Webrequest -uri http://www.foliofn.com -sessionvariable fol
$login.links
The third link is the login button, which when clicked brings up the login form:
innerHTML : <I class=icon-lock></I>Login
innerText : Login
outerHTML : <A class="btn btn-small headerloginlink" href="/servlets/ProcessAction?identifier=loginFormEntry&click1=Login"><I class=icon-lock></I>Login </A>
outerText : Login
tagName : A
class : btn btn-small headerloginlink
href : /servlets/ProcessAction?identifier=loginFormEntry&click1=Login
How do I "click" this using the invoke-webrequest method? Do I need to post somehow (although this is not a form, just a link).
I know I can do it using ie.document.getelementsbyTagName to select this element and then use click(), but I can't figure out how to do it in V3 without using DOM (if that's the right way to say it).