GithubHelp home page GithubHelp logo

00mjk / seleniumsimplesample_js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexkazarin/seleniumsimplesample_js

0.0 0.0 0.0 5.59 MB

Selenium-tests on JavaScript. Any questions/recommendations - create Issues!

License: MIT License

JavaScript 100.00%

seleniumsimplesample_js's Introduction

Travis CI: Build Status

This project is simple example of HowTo organize Selenium-tests on JavaScript.

You will need:

How to run:

After you have installed all necessary elements, clone this repo and execute in terminal

$ npm run test

How to create your personal project step by step:

Initialise npm project:

$ npm init

Install dependencies:

  • javascript test framework (ex. Mocha)

$ npm install --save-dev mocha

  • module for webdriver support

$ npm install --save-dev selenium-webdriver

  • module for assertions support

$ npm install --save-dev chai

  • module to work with file system (screenshots buffer)

$ npm install --save-dev fs

Download webdriver and put it into project:

  • used Chromedriver (ex. in repo last available v2.27 for Linux x64)

Create npm-command "test" in package.json:

"scripts": {
    "test": "node_modules/mocha/bin/mocha src/tests/Tests.js"
  },

Start coding tests! (or view this repo tests and its comments)

Common structure:

Read about pObject pattern

seleniumsimplesample_js's People

Contributors

alex-free avatar alexkazarin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.