forked from cypress-io/cypress-example-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
25 lines (22 loc) · 759 Bytes
/
form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<body>
<!--
not that during testing we do not even have
the server to submit to, the test will have to stub
-->
<p>Form sent via search parameters when using GET</p>
<form id="params" action="/submit-form">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname">
<br/>
<input type="submit" value="Submit">
</form>
<br/>
<p>Multipart POST form</p>
<form id="multipart" action="/submit-form" method="post" enctype="multipart/form-data">
<p><input type="text" name="city"></p>
<p><input type="number" name="value"></p>
<p><button type="submit">Submit</button>
</form>
</body>