Skip to content

mingfang/docker-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-selenium

Run Selenium Tests Inside Docker

  1. ./build Docker image
  2. ./shell Shell into Docker container
  3. runsvdir-start& Use Runit to start Selenium Server
  4. mocha test.js -t 10000 Run sample test

Sample output

>mocha test.js -t 10000

=======================================================================================
Selenium 2.0/webdriver protocol bindings implementation with helper commands in nodejs.
For a complete list of commands, visit https://webdriver.io/docs.html. 
=======================================================================================



  Test example.com
[01:51:08]:  SET SESSION ID 818ea329-1118-4d96-a28d-beeed385bb72
    Check homepage
      ✓ should see the correct title (53ms)
      ✓ should see the body (137ms)


  2 passing (2s)

Based on this article [https://code.tutsplus.com/tutorials/headless-functional-testing-with-selenium-and-phantomjs--net-30545]

About

Run Selenium Tests Inside Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published