我必須提交表單1000次才能爲網站創建對象。他們已經給我們提供了這樣的機會,但卻沒有簡單的方式來發布數據而不使用他們的網站形式。創建填充表單值並提交的腳本
形式有以下4個輸入:
Textbox name = login
Textbox name = password
select name = region (values from 1 to 2000)
button name = submit
有什麼辦法來創建一個腳本,將相應地選擇在瀏覽器中這些元素和設定值?
我想過使用AutoHotKey,但找不到任何方法來選擇Web元素並填寫它們的值。
<form method="post" autocomplete="off" action="index.php?authorized=1">
<input name="login" maxlength="12" type="text">
<input name="password" value="" maxlength="30" type="password">
<select name="local_id">
<option value="1">Washington D.C.</option>
<option value="2">Chicago</option>
...(many more that i removed)
</select>
<input name="login_id" value="223" type="hidden">
<input name="dss" value="1" type="hidden">
<input name="action" value="createUser" type="hidden">
<input name="submit" value="Submit" type="submit">
</form>
是的,這是可能的。你可以複製和粘貼源代碼爲