简体   繁体   中英

Click button on a website using javascript from a chrome extension

I wanted to click on the Wiki button of the below given url

https://courses.edx.org/courses/BerkeleyX/CS100.1x/1T2015/wiki/BerkeleyX.CS100.1x.1T2015/

How can I click on the same button after every 5 minutes to get the latest result.

I wanted to do this in google chrome how can I do this using javascript or by using any chrome extension and code in the same?

Awaiting for your response!!

I think you are trying to do web scraping .

In javascript, you could try artoo .

artoo.js is a piece of JavaScript code meant to be run in your browser's console to provide you with some scraping utilities.

您可以使用setInterval并且在setInterval您可以触发点击。

 setInterval(function(){ alert("Hello"); }, 1000);

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