Little trick to click multiple buttons using Javascript HTML
Автор: Hang Tran
Загружено: 2020-04-21
Просмотров: 1093
Описание:
Sorry because Youtube does not allow to write code symbol so please visit my medium post to copy the code:
Medium full post: / a-little-trick-to-auto-click-buttons-in-li...
STEP:
Open Chrome dev tool by Cmd+shift+I , inspect the class of these 50 buttons. Usually, the button would have the same class name pattern. If you can get the class name pattern, you could select all of them
2. Use this piece of code to select elements with the extracted class name and assign a variable to store them. In this case, I assign for the buttonList constant
const buttonList = document.getElementsByClassname(“button-class-name”)
3. After that, we would have an HTML node collection.All you have to do is to convert it to an array using the below code:
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: