Automated form filling

HTML uses many form elements like input (text, password, checkbox, radio), label, textarea, select, option etc. In this use case we will work with this demo site: https://testpages.herokuapp.com/styled/basic-html-form-test.html

Start a new project

../../_images/Screenshot_323.png ../../_images/Screenshot_324.png

Configure commands

In this project only the automation panel will be used.

List variable

../../_images/Screenshot_325.png ../../_images/Screenshot_326.png ../../_images/Screenshot_327.png

We will work with data below to fill the form, you can change file paths for accurate results.

username_1;password_1;comment_1;C:\Users\MY-PC\Documents\RTILA\filenames\1.txt;cb1;rd1;ms1,ms2;dd1;hidden_1
username_2;password_2;comment_2;C:\Users\MY-PC\Documents\RTILA\filenames\2.txt;cb2;rd2;ms3,ms4;dd2;hidden_2
username_3;password_3;comment_3;C:\Users\MY-PC\Documents\RTILA\filenames\3.txt;cb3;rd3;ms1,ms4;dd3;hidden_3
username_4;password_4;comment_4;C:\Users\MY-PC\Documents\RTILA\filenames\4.txt;cb1;rd1;ms2,ms3;dd4;hidden_4
username_5;password_5;comment_5;C:\Users\MY-PC\Documents\RTILA\filenames\5.txt;cb2;rd2;ms4,ms2;dd5;hidden_5
username_6;password_6;comment_6;C:\Users\MY-PC\Documents\RTILA\filenames\6.txt;cb3;rd3;ms3,ms1;dd6;hidden_6
../../_images/Screenshot_328.png

Parsing parameters and variables

{{variable name}}
{{variable name|column index}}
../../_images/Screenshot_375.png ../../_images/Screenshot_376.png

Text input

../../_images/Screenshot_329.png ../../_images/Screenshot_330.png
Username
[name="username"]
{{data|0}}
../../_images/Screenshot_331.png

Password input

../../_images/Screenshot_332.png ../../_images/Screenshot_333.png
Password
[name="password"]
{{data|1}}
../../_images/Screenshot_334.png

Textarea element

../../_images/Screenshot_335.png ../../_images/Screenshot_336.png
Comment
[name="comments"]
{{data|2}}
../../_images/Screenshot_337.png

File upload input

../../_images/Screenshot_338.png ../../_images/Screenshot_339.png
Filename
[name="filename"]
{{data|3}}
../../_images/Screenshot_364.png

Checkbox input

../../_images/Screenshot_340.png ../../_images/Screenshot_341.png
Checkbox Items
[name="checkboxes[]"][value="{{data|4}}"]
../../_images/Screenshot_342.png

Radio input

../../_images/Screenshot_343.png ../../_images/Screenshot_344.png
Radio Items
[name="radioval[]"][value="{{data|5}}"]
../../_images/Screenshot_345.png

Select multiple options

../../_images/Screenshot_346.png ../../_images/Screenshot_347.png
Multiple Select Values
[name="multipleselect[]"]
{{data|6}}
../../_images/Screenshot_348.png

Select single option

../../_images/Screenshot_349.png ../../_images/Screenshot_350.png
Dropdown
[name="dropdown"]
{{data|7}}
../../_images/Screenshot_351.png

Hidden input

../../_images/Screenshot_377.png ../../_images/Screenshot_378.png
Hidden field
[name="hiddenField"]
{{data|8}}
../../_images/Screenshot_379.png

Note

Make sure that the “Mimic human typing” option is unchecked when working with hidden fields.

Click on submit button

../../_images/Screenshot_352.png ../../_images/Screenshot_353.png ../../_images/Screenshot_354.png ../../_images/Screenshot_355.png ../../_images/Screenshot_356.png ../../_images/Screenshot_357.png ../../_images/Screenshot_358.png ../../_images/Screenshot_359.png ../../_images/Screenshot_360.png ../../_images/Screenshot_361.png

Run the project

../../_images/Screenshot_362.png ../../_images/Screenshot_363.png ../../_images/Animation_1.gif