demo-selenium-javascript
Demo of Selenium browser automation with JavaScript
https://github.com/joelparkerhenderson/demo-selenium-javascript
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.4%) to scientific vocabulary
Repository
Demo of Selenium browser automation with JavaScript
Basic Info
- Host: GitHub
- Owner: joelparkerhenderson
- Language: JavaScript
- Default Branch: main
- Size: 29.3 KB
Statistics
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Demo Selenium JavaScript
Demonstration of:
- Selenium browser automation testing
- JavaScript programming language
- Node runtime built on Chrome's V8 JavaScript engine
- ChromeDriver extends Webdriver by adding Chromium-specific capabilities
Many more examples are here:
Install
Install Node and NPM
Install Node and NPM from https://nodejs.org/
Run this to confirm your version:
sh
node -v
Output should be at least:
stdout
v23.6.1
Run this to confirm your version:
sh
npm -v
Output should be at least:
stdout
11.2.0
Install Selenium
Install Selenium WebDriver:
sh
npm install --save selenium-webdriver@latest
Install chromedriver
Install Google chromedriver:
sh
npm install --save chromedriver@latest
Update
Run:
sh
npm install npm@latest
npm upgrade
npm audit fix
Run
Run:
sh
./src/demo.js
If you prefer, you can run with Node explicitly:
sh
node src/demo.js
The script will do three things:
Launch your local Chrome web browser to view the free open source testing examples web page https://testingexamples.github.io.
Interact with the web page in various ways, such as finding elements, clicking on elements, filling in form inputs, etc.
Print some typical HTML tag output that demonstrates the program is running successfully.
Troubleshooting “chromedriver” Not Opened
If you get this kind of error message:
txt
“chromedriver” Not Opened. Apple could not verify “chromedriver”
is free of malware that may harm your Mac or compromise your privacy.
Or this kind of error message:
txt
Apple is not able to verify that it is free from malware that could harm your
Mac or compromise your privacy. Don’t open this unless you are certain it is
from a trustworthy source.
Then click "Done".
Try this command line solution:
sh
xattr -d com.apple.quarantine $(which chromedriver) 2>/dev/null
Try adjusting your system settings:
Apple menu -> Settings -> Security & Privacy -> General
See the entry that says: "chromedriver" was blocked to protect your Mac.
Click the button "Allow Anyway".
Troubleshooting "This version of ChromeDriver …"
If you get this kind of error message:
txt
UnhandledPromiseRejectionWarning:
SessionNotCreatedError: session not created:
This version of ChromeDriver only supports Chrome version …
Then you may need to harmonize your Chrome browser app and your Chrome webdriver.
If you use macOS brew, then upgrade chromedriver:
sh
brew upgrade chromedriver
To update your Chrome browser app:
On your computer, open Chrome.
Find your current Chrome version by typing in the URL bar:
chrome://version/.You should see a web page with many details, and you should see the first line with the version number, such as: "Google Chrome 135.0.7049.86 (Official Build)".
At top right, tap the "More" icon, which is 3 vertical dots.
You see the "More" menu. If you see a menu item "Update", then choose it. If you don't see a menu item "Update", then you're on the current version.
To update your Chrome webdriver:
Go to https://chromedriver.chromium.org/downloads
Download the version that matches your Chrome browser app.
Tracking
- Package: demo-selenium-javascript
- Version: 1.4.0
- Created: 2019-11-02T00:00:00Z
- Updated: 2025-04-24T13:58:02Z
- License: GPL-2.0-or-greater or for custom license contact us
- Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)
Owner
- Name: Joel Parker Henderson
- Login: joelparkerhenderson
- Kind: user
- Location: California
- Website: http://www.joelparkerhenderson.com
- Repositories: 319
- Profile: https://github.com/joelparkerhenderson
Software developer. Technology consultant. Creator of GitAlias.com, NumCommand.com, SixArm.com, and many open source projects.
Citation (CITATION.cff)
cff-version: 1.2.0
title: Demo Selenium JavaScript
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/joelparkerhenderson/demo-selenium-javascript/'
description: Demo Selenium JavaScript
repository-code: 'https://github.com/joelparkerhenderson/demo-selenium-javascript/'
abstract: >-
Demo Selenium JavaScript
license: See license file
GitHub Events
Total
- Watch event: 2
- Push event: 19
- Fork event: 1
Last Year
- Watch event: 2
- Push event: 19
- Fork event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joel Parker Henderson | j****l@j****m | 4 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- chromedriver ^93.0.1
- selenium-webdriver ^4.0.0-rc-1