我想使用python在网页上填写和提交表单。Python提交表格
这种形式:
<form method="POST" id="login" action="site/enter.php" >
<input type="text" placeholder="Login" name="login" class="login" tabindex="1">
<input type="password" placeholder="Password" name="psw" class="password" tabindex="2">
<input type="submit" class="btn_auth" value="" title="Enter" tabindex="3">
</form>
但不能做到这一点。我登录并通过,但不能模拟提交按钮。
什么?你有什么样的网络框架,如果有的话?你有什么麻烦?我们需要更多的信息。 – pcalcao 2012-07-31 14:29:53
请发布非工作代码,否则这个问题太含糊。 – 2012-07-31 14:34:03
这看起来像Selenium Webdriver的工作! – aychedee 2012-07-31 14:34:52