DeathJack2.0 DeathJack2.0 - 2 years ago 71
Python Question

Create a script which will automatically input data into a HTML Text field

Suppose there is a simple form.html file containing the following code :

<form>
First name:<br>
<input type="text" name="firstname" value="">
<br>
<input type="submit" value="Submit">
</form>


I want to create a python script which should automatically fill the value in the text field and submit the form. How do I do?

Answer Source

While this is opinion based, there are several Python (and command line) tools you could use. Read up on a few packages:

Good luck.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download