简体   繁体   中英

Is it possible to make a keyboard shortcut for clicking a button on a particular website?

I have a button on a particular website that have to click frequently enough that it would save me a lot of time if there were a keyboard shortcut for it. Does anyone know if it would be possible to write a bash script or something that would allow you to press a keyboard shortcut, detect if your browser were in focus and on the given site, and then if so trigger the clicking of a button with a particular HTML id, or something like that?

I suggest you take a look at selenium. It is an automated testing tool for websites. There are libraries for various programming languages or even a chrome extension.

Selenium website

Selenium python library

Chrome extension

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM