Skip to content

Automation UI Testing with Selenium and JavaScript

Notifications You must be signed in to change notification settings

alyrlee/selenium-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation Testing with Selenium and JavaScript

Selenium

Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.

Allows users to simulate common activities performed by end-users; entering text into fields, selecting drop-down values and checking boxes, and clicking links in documents. Browser user agent library. Execute on Firefox, Internet Explorer, Chrome, and all other supported browsers.

Documentation

Narrative documentation:

JavaScript

Click to see JavaScript Build Steps

If you want to build all the JavaScript code you can run:

bazel build javascript/...

To build the NodeJS bindings you will need to run:

bazel build //javascript/node/selenium-webdriver

To run the tests run:

bazel test //javascript/node/selenium-webdriver:tests

You can pass in the environment variable SELENIUM_BROWSER with the name of the browser.

To publish to NPM run:

bazel run //javascript/node/selenium-webdriver:selenium-webdriver.publish

Getting Started

You need to install either Yarn or Node on your machine. In this project, I will use npm for installing packages and running scripts.

npm install

Running UI Test

npm run test

References

Getting started :: Documentation for Selenium

SeleniumHQ/seleniumhq.github.io: Official Selenium website and documentation

Selenium Cheat Sheet - DEV Community

About

Automation UI Testing with Selenium and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published