How to automate a dynamic web page using VBA?
May 9, 2012 10:32 AM Subscribe
Help me automate some of my work involving taking values in a spreadsheet and plugging them into a website with dynamically generated content.
I need someone to point me in the right direction. I have several tasks which are very mechanical which I would like to automate. One, for instance, involves taking a list of product numbers from a spreadsheet, entering them one at a time to a website, then printing the resulting page.
I have tried to automate this via VBA, and I can get as far as loading the page and entering the product number into the correct form field, but there is actually a step before this where a drop down needs to be selected before the product number field is active. I am actually able to set the value of this drop down, but doing this doesn't cause the page's javascript to enable the product number field and product number submit button which then ignores my attempt to programatically click it.
Basically the page I want to use is dynamically generated, but the parts I want don't show up until after the necessary info has been entered, and I can't get the page to recognize that I've automatically entered it. Further complicating the situation is that the web page I'm working with is generated by ASP (I think) which I'm not familiar with and which is inserting a lot of strange script tags with long strings of encoded data.
Any help or pointers in the right direction would be greatly appreciated.
posted by Reverend John to computers & internet (6 answers total) 2 users marked this as a favorite
posted by Dano St at 10:49 AM on May 9, 2012