How do i select the correct radio and lists so it can send the information on using the Download button.
Im having a hard time to understand how to input a value to something that is not a text field. In this situation the input is a and a list. The plan is to use Powershell to select all the needed options and then download the file locally.
After some crawling in the sourcecode it seems that it runs Jquery in the background but I have no understanding on how to interact directly with it.
$Web = Invoke-WebRequest "http://link.aspx"
$Web | Get-Member
$Web.InputFields
The inputfields is as shown here.
innerHTML :
innerText :
outerHTML : <INPUT id=hierarki type=radio value=select1 name=hierarki>
outerText :
tagName : INPUT
id : hierarki
type : radio
value : select1
name : hierarki
innerHTML :
innerText :
outerHTML : <INPUT id=omraade CHECKED type=radio value=select2 name=hierarki>
outerText :
tagName : INPUT
id : omraade
CHECKED :
type : radio
value : select2
name : hierarki
Screenshot showing the buttons

I see that the select2 has a "CHECKED" added to it but i have no idea how to manipulate it.