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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM