Selenium in JavaScript: Part 1 (Hello, World!)

preview_player
Показать описание
Hello everyone, welcome to SteamCode! In this part of the Selenium in JS series, I will be showing you how to create the basic skeleton code for web task automation and web scraping. If you have any questions, do not hesitate to leave them in the comment section down below or on Discord!

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

I have watched almost 1h of other course teaching how to use Selenium with Ruby and I spent a lot of time installing dependencies and stuff, all super complicated. Then I decide to stop and look for another tutorial. Luckily I found this one here and I was able to write my 1st test in less than 5 min. Great job and thanks for sharing!

daniel-talon
Автор

This is a really nice overview! Thanks for the tutorial!

joselynrovellequartz
Автор

Damn this was really helpful. Thanks mate. The guide on their site is really convoluted.

Stoneage
Автор

thank you man, you deserve more appreciation

keni
Автор

What's the purpose of installing and requiring that chromedriver module? It doesn't seem to be used and judging by the Selenium docs and my own tests it's not needed.

FloStudios
Автор

I tried to do everything as described in this video, but got: "NoSuchSessionError: This driver instance does not have a valid session ID". Any idea how to fix it? I've seen a bunch of posts on that, but can not figure it out.

olegkon
Автор

Hi is anybody experiencing this? I can't get Hello World to be typed on the search element

ezlylkana
Автор

I have an older version of chrome (106) but when i install chromedriver with ur code, it run with version 108. So how can i downgrade the version of chromedriver in the code if i don't want to update chrome?

thinhduy
Автор

'selenium-webdriver-chrome@*' is not in this registry.

this is what I get when installing the chrome driver any well will be appreciated

thebaltsology
Автор

is there a way to make the client run the webdriver? something like you enter the inputs in the web and open a webdriver on the client pc?

feliwein_cc
Автор

hello, can anyone suggest how to solve this error
Error: Cannot find module 'node:events'
Require stack:
-
-
-
-
-
-
at
at Function.Module._load
at Module.require
at require
at Object.<anonymous>
at Module._compile
at Object.Module._extensions..js
at Module.load
at Function.Module._load
at Module.require {
code: 'MODULE_NOT_FOUND',
requireStack: [
'c:\\Users\\Hp\\Desktop\\seleniumJS\\node_modules\\selenium-webdriver\\bidi\\index.js',
'c:\\Users\\Hp\\Desktop\\seleniumJS\\node_modules\\selenium-webdriver\\lib\\webdriver.js',
'c:\\Users\\Hp\\Desktop\\seleniumJS\\node_modules\\selenium-webdriver\\chromium.js',
'c:\\Users\\Hp\\Desktop\\seleniumJS\\node_modules\\selenium-webdriver\\chrome.js',
'c:\\Users\\Hp\\Desktop\\seleniumJS\\node_modules\\selenium-webdriver\\index.js',

]
}

tejastoley
Автор

Would it have killed you to switch off the TV that's running in the background?
Good microphone but the TV in the background is f*cking annoying.

AlexBooster
Автор

I used firefox and it didn't type in hello world because of some pop ups? It worked when I changed the search engine to duckduckgo.

Florian-luzo