TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Javascript

Install selenium-webdriver package

Overview

In this tutorial, we will learn the steps to install the selenium-webdriver software package on Node.js

Node.js should be installed on the machine. Steps to download and install Node.js runtime on Windows:

https://www.testingdocs.com/downloading-and-installing-node-js-on-windows/

Install selenium-webdriver

Launch a command prompt and issue the following install command:

\> npm install selenium-webdriver

install selenium-webdriver package

This command will install the software package. This will list the output of the number of added packages during the installation process.

npm install selenium

Run Test Script

To run a web test script, we can use the following command:

\> node <script.js>

script.js is the JavaScript web test script that contains the test code.

Run Selenium Node JavaScript

Related Posts

npm doctor command

Javascript /

npm doctor command

npm config global warning

Javascript /

Fix npm warnings config global `–global`, `–local` are deprecated.

Javascript /

Popular JavaScript Frameworks

Install Protractor

Javascript /

Install Protractor on Windows

npm version command

Javascript /

npm – Node Package Manager

‹ Install Protractor on Windows› Popular JavaScript Frameworks

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com