Select a web form drop down non interactively

Recommended Posts

D-man 0

D-man 0

I have an interesting challenge for automating a web form submission, which generates a report and presents an option to open or save the generated XML file. The automation needs to occur non-interactively while the Windows PC is locked.

Report generation flow:

1. Login to website2. Navigate to the report page where the form must be submitted. (Web page source code excerpt is at the bottom of the post)3. Select the customer via a drop down menu. This in turn populates the select form called 'PIR' with two values. I think this is done with an AJAX call.4. Select one of the two numeric values in the 'PIR' select form box.5. Select Output Option of Excel. 6. Click the submit button.7. The IE browser prompts to Save or Open the file. Choose save.

I am stuck at step 3. The customer value does get selected in the drop down list, but it doesn't kick of the AJAX call, which in turn would populate the next required select form, called 'PIR', with two values. Interactively, AJAX call happens when using the mouse or the keyboard down arrow to select the customer. Unfortunately, this doesn't work using the 'Send' function because the PC is locked.

Could some one please let me know what my options are to surpass this obstacle? Any help is greatly appreciated.