我正在尝试从 bash 脚本“单击”网页上的按钮。有人告诉我尝试使用 curl,但我无法弄清楚。我不需要填写任何输入信息,只需模拟导航到页面并单击按钮(也需要登录)。
这是formfind的输出:
server:$ ~/formfind < ./site.html
--- FORM report. Uses GET to URL "/view/job/26/search/"
Input: NAME="q" VALUE="search" (TEXT)
--- end of FORM
--- FORM report. Uses POST to URL "Job/pass"
Button: "Execute" (SUBMIT)
--- end of FORM
--- FORM report. Uses POST to URL "Job/fail"
Button: "Execute" (SUBMIT)
--- end of FORM
我正在尝试单击通过或失败下的“执行”按钮