Jump to content
MikeZ87

Fill in Form Data on a Web Page contained in a TEdgeBrowser VCL component

Recommended Posts

Hello,

 

I'm trying to write a program that needs the ability to go to a web page, then fill in information IN that webpage (ie: detect a form, determine the fields, fill in the field data,) and then submit the form.

 

I'm using a TEdgeBrowser component.

 

Questions:

1. Based on what I wrote above, is using a TEdgeBrowser component necessary? (Ultimately, the user doesn't necessarily need to see the data; the program should do most of the "surfing" automatically.

1b. If not, what method would you recommend?

2. If I should be using a TEdgeBrowser, what's the best way to determine the fields in an HTML form?

3. How can I automatically enter data into those fields?

4. ... and submit?

 

Thanks!

 

- Mike

Share this post


Link to post

Browser component is the most easy option. Other ones may be possible or not depending on API a site uses. In theory, you can always send HTTP requests instead but in practice a site could implement some defending techniques like generated tokens.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×