I'm trying to use VBA to navigate to a website and then extract some data. So far I've been able to navigate to the website and, but I can't figure out how to click on the buttons I need. Based on the research I've done, using querySelector is a much better option than using getElements.
When I inspect the button I'm trying to click on it brings me to the following line in IE's DOM explorer
<INPUT width="80" class= "button" onclick= "updateSummary();" type= "button" value="Apply Filters"></input>
Based on my research, I've got the following: . . .
Ie.document.queryselector("input[value=Apply Filters]") (0).click
But I get a
runtime '438' object doesn't support this property or method.
I'd also like to be able to click on an "Export to CSV" button, and the html code has an href component and a source = "dynamically changing code based on the day" component.
Would it be possible to click on the export to to CSV button and either open the file or save it in a folder?
Thanks so much for the help!
document.queryselectorreturns either a single element or null if there's no match. So try dropping the(0)