Forms

Forms are probably one of the most used reasons for automation within a web application. We will look at a variety of form elements and show how to automate an action and also how to test the value of an element.

A basic form that we are going to deal with is below.

<html ng-app="myform">
<head>
    <script src="./angular.min.js"></script>
    <title>Form</title>
</head>
<body>
    <form method="POST" action="someaction">
        Username: <input type="text" class="frm1" id="username"/> <br>
        Password: <input type="password" class="frm1" id="password"/> <br>
        Remember me: <input type="checkbox" id="remember"/>
        <input type="submit" />
    </form>
</body>
</html>

results matching ""

    No results matching ""