How to Automate Browser Tasks with JavaScript

preview_player
Показать описание
In this JavaScript tutorial we'll walk through how to automate browser tasks, specifically we'll see how you can automatically follow and unfollow on LinkedIn as a case study.

The JavaScript code that we'll be writing can be used for the majority of browser automation tasks. Remember there are two key steps to building a script:

1. Selecting the page elements that you want to work with.
2. Looping over the elements and performing whatever task you want to run. In our example we clicked on each button.

For more tutorials, make sure to subscribe to this channel, new coding tutorials are published each week. You can also follow me on:

Рекомендации по теме
Комментарии
Автор

Ran with an issue about the spaces in between the class name, fixed them by adding points instead of spaces to separate each one of them. Great video man.

marcostrevinorodriguez
Автор

Great video! I'd like to learn hown to move items from my Amazon Save for later items to a wish list. Do you have a video that might help?

I have one script that does everthing but select the correct list from the pop up options.

AllynVibes
Автор

Thank you sir, is it possible to make this an extension

ericdango
Автор

How can I automate the selection with mouse and past it on other file.

MiyamotoMusashi
Автор

Great tutorial. I've just started to study javascript to help with a hobby and I think this is the first time I've full understood a tutorial.
Do you think I might be able to adapt this to select those buttons already selected and call them to repeat? Basically, to just re-run over the list of selections.
I have an application where the user can select from a group of buttons to build up a group in sequence. Once they have chosen the sequence, I would like them to be able to click on another button to run that sequence again with out further clicks except for the RUN button.

EdwinDevey
Автор

is violentmonkey better than tampermonkey?

zaryangupta
Автор

Thanks very much for the tutorial. I have really learned a lot but a question remains, how can I make it work at intervals even when I'm not working on my PC, or when I'm offline?

sariyubilihaminu
Автор

Hi is there a way we can make this script as google extension? how can the google extension read the elements of the active tab?

elle
Автор

I make automation solutions but after seeing this ability with javascript i am very surprised. Really love this and the way you explained. Thanks.

seohelpers
Автор

Not able to work with Class Name on a website. Please suggest a method for clicking buttons using their IDs..

SaawanSingh
Автор

This is so helpful. Quick question...how do I create a JavaScript for a stopwatch/timer website to click on the timer option, type in 60 seconds, then click on "Set" and then "Start"?

fooljc
Автор

Hi i need some suggestion i want to make a function, problem i am facing is after click a new small pop up windows open i want to click on another button and then close that and then run same process on other with in one div, so can you please temm me click ==> click Yes ==> Cross and repeat for all.

attatahir
Автор

Thank you for the tutorial. This was very informative and now I can automate a project.

caroldanvers
Автор

Now how can I store my automation code in a separate javascript file and run it when the website opens?

souptiknath
Автор

I was looking solution like for whole last week and found the solution, now youtube suggested me this video. Why youtube?? Anyways always there is something more to learn here, thanks.

ravindrabitk
Автор

Damn it man, I was looking for this for a very long time, it's a very powerful tool thanks a bunch

mohammedtouati
Автор

Is this possible
I want to make a bot that generates a random 4 letters and search for it in (yopmail) and then it searches for a specific word in the email and if it found something it should send that 4 letters to me and if the mail is empty the bot will generates a new word of 4 letters and search again until i turn it off

_m..
Автор

Excellent....But what if the document requires a field to be filled and keyUp event to start??? How do u simulate it?

paulosilva-dmqb
Автор

Tip for anyone new to scripting in the browser debugger: don't use 'const' unless you really mean to never use that symbol without refreshing the page. More often than not, you'll want to redefine a variable as you try different things.

NuncNuncNuncNunc
Автор

what if they aren't considered buttons? What do you do when they are links?

PigNe