我试着按下此键,这是从信息的检查我将如何点击此按钮?
<form action="?p=casino" method="post">
<input type="hidden" name="game" value="6">
<input type="submit" value="Play" class="button">
</form>
在其他按键操作,我可以简单地做
var missionButton = document.getElementById(CrimeID); //CrimeID is the ButtonID from the /crimes page/ variables at the top of this script.
missionButton.click();
CrimeID是“Form1的”,所以我能只需要选择form1和.click,但是我不能用这个来做,因为没有表单id或者任何东西,它是特定于snippit中显示的值(我需要它是6)。
请提供更多的代码和解释你试图实现的目标 – Pimmol