I am trying to scrape data off a website on the company intranet, on the query page I make selections then click on search to retrieve data, which is then copied to excel.
Some selections made, have to alter other drop-down lists, which is not happening in the approach I have taken.
I can only make selections based on the information that loads in each dropdown when the website loads.
For instance, this a code for element eqp_type, now selecting index 1 in this should alter other dropdown lists. But it doesn't happen, the page doesn't update as it does when I manually click on element under index 1.
Dim eqp_type As HTMLFormElement
Set eqp_type = ht.getElementById("eqp_type")
eqp_type.selectedIndex = 1
Also, attached is the source code for this section.
I am not sure if it's the correct technical term, but the dropdown lists, etc on the selection page are dynamic and alter when I select an option in one list, but with my doesn't happen.
Making selction in any of these criterias should alter lists in other drop downs, for instance selecting index 1 in above code should select REEF and update the condition type list but that does not happen.
Some selections made, have to alter other drop-down lists, which is not happening in the approach I have taken.
I can only make selections based on the information that loads in each dropdown when the website loads.
For instance, this a code for element eqp_type, now selecting index 1 in this should alter other dropdown lists. But it doesn't happen, the page doesn't update as it does when I manually click on element under index 1.
Dim eqp_type As HTMLFormElement
Set eqp_type = ht.getElementById("eqp_type")
eqp_type.selectedIndex = 1
Also, attached is the source code for this section.
I am not sure if it's the correct technical term, but the dropdown lists, etc on the selection page are dynamic and alter when I select an option in one list, but with my doesn't happen.
Making selction in any of these criterias should alter lists in other drop downs, for instance selecting index 1 in above code should select REEF and update the condition type list but that does not happen.