Solved

interacting with web form

Posted on 2014-09-10
4
148 Views
Last Modified: 2015-02-09
Hi, I'm using delphi and I would like to open a web page, fill a field and press submit automatically without the user intervention.

For example, I could call google, fille the search field and press search button and then I would read the results with my program, all this without the user seeing his web application open.    I'm usually using GetInetFile to perform this kind of thing but I don't know how to interact with the web form.
0
Comment
Question by:Buropro-Citation
  • 2
4 Comments
 
LVL 26

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 40315218
Most popular way is to use TWebBrowser which is IE behind. Here, on EE there are few questions/answers already:
Q_24019589, Q_23201411, Q_23128532
http://www.swissdelphicenter.ch/torry/showcode.php?id=262

if you stuck somewhere... we are here.
0
 
LVL 26

Expert Comment

by:Sinisa Vuk
ID: 40315279
...addition - you must wait until page is loaded - then you need to fill form. Waiting is described here:
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_28040513.html
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 40598232
I've requested that this question be closed as follows:

Accepted answer: 500 points for Sinisa Vuk's comment #a40315218

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi parse string to params 3 136
creating threads in delphi 1 130
Powershell Script need assistance to make some changes 4 91
Work with App store 7 67
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

789 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