更新时间:2023-12-05 17:54:10
欢迎来到TSDN。
对于键盘快捷键,请参阅此示例。它为您提供按下键的键码。您还可以查看alt / shift / ctrl键的此参考号。 。
您可以使用click()方法模拟按钮点击,请参阅链接。
Welcome to TSDN.
For keyboard shortcuts, see this example. It gives you the keycode of the key pressed. You can also see this ref. for alt/shift/ctrl keys.
You can simulate button clicks with the click() method, see link.
谢谢
你能给我一个脚本的示例吗?识别一个按钮并在它出现时点击它(每当我访问它包含它的网页时)?
谢谢
thanks
can you give me a guided example of a script that will recognize a button and click it whenever it appears (whenever I visit a webpage that it contains it) ?
thanks
你可以找到所有输入元素:
You could look for all input elements: