Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.69 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.69 KB

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