Capturing simple forms
We have already encountered a variation of form submission in Chapter 2, Recording Your First Test, when we submitted a login form to be authenticated with the server. The form had two text fields for username and password, respectively. This is a good start. Most websites requiring authentication will have a similar feel to them. HTML forms, however, span a whole range of other input types. These include checkboxes, radio buttons, select and multiselect drop-down lists, text area, file uploads, and so on. In this section, we take a look at handling other HTML input types.
We have created a sample application that we will use throughout most of this chapter to illustrate some of the concepts that we will discuss. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access