Solved

Automate Web Form Submission Using Bot

Posted on 2009-05-15
2
694 Views
Last Modified: 2013-12-26
We have been using an older ASP script for some time to automate the process of extracting data from a paid subscription site that we need to check frequently for updates.  The owner of the site has recently updated it to use ASP.NET (previously they were using asp 2.0) and now it appears that postbacks are not working anymore as some element of ASP.NET is preventing us from properly submitting data to the website's forms using http post.  Where in the past we were able to script the login to the site and the action of setting up a search by posting data to the web site forms, we can no longer do so.  The question is, what are our options for automating this process?  I'm thinking there must be some way to develop a bot application that will impersonate a browser session rather than simply posting the data to their forms in a script but I'm not even sure where to start.  Does VBScript or Wscript include a browser object that can be accessed programmatically?   I already have the code that parses the data returned from the search so it would be simple enough to modify that to read from a file output that could be saved from some new "bot" application that logs into the site and extracts the search results automatically.  
0
Comment
Question by:emilysam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
CyberSimon earned 500 total points
ID: 24509883
You can use the InternetExplorer.Application object to script the form and get the results.

Here's an example:
http://www.eggheadcafe.com/articles/20011215.asp
0
 

Author Closing Comment

by:emilysam
ID: 31582088
Thanks for link.  I was hoping to get some feedback as to the best way to accomplish this task.  I will explore the suggested solution.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question