selenium基础篇:form表单部分

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
<form action="javascript:alert('hello')" method="post">
<form action="http://www.baidu.com" method="post">
 -->
<form action="javascript:alert('hello')" method="post">
    Username :<input type="text" name="username" id="username"><br>
    Password :<input type="text" name="password" id="pwd"><br>
    swimming :<input type="checkbox" name="swimming" value="swimming"><br>
    reading  :<input type="checkbox" name="reading" value="reading"><br>
    <hr>
    gender:<input type="radio" name="gender" value="gender"><br>
            <input type="gender" value="female"><br>
    provide:
    <select name="province" id="province" multiple>
        <option value="bj">Beijing</option>
        <option value="tj">Tianjin</option>
        <option value="sh">Shanghai</option>
    </select>
<input type="submit" value="login" id="submit">
</form>
</body>
</html>
原文地址:https://www.cnblogs.com/c-jw/p/13806685.html