0.4.28 • Published 11 months ago

@tdd-buffet/selenium v0.4.28

Weekly downloads
6
License
MIT
Repository
github
Last release
11 months ago

Selenium tools for tdd-buffet

Build Status codecov


Requirements

  • Docker 1.12.0+
  • docker-compose 1.18.0+

Install

npm install @tdd-buffet/selenium

Start a grid with Chrome and Firefox

npx @tdd-buffet/selenium start [N=1] --port 4444 --retries 15

The hub will listen at 0.0.0.0:4444 and it will have 2*N browser nodes (N Chrome and N Firefox):

Start a grid with debug nodes with VNC

npx @tdd-buffet/selenium debug --port 3333 --retries 15

The same hub as above will spin up, but this time only 2 nodes (Chrome and Firefox) with VNC enabled will connect. VNC is available at 0.0.0.0:5900 (Chrome) and 0.0.0.0:5901 (Firefox).

Connect other containers

When spinning up the grid a network named tdd-buffet is created. You can make other containers visible to the grid nodes by having them join the same network - they will then be accessible through their name. Here's an example using docker-compose:

version: '2.1'

services:
  my-service:
    image: nginxdemos/hello
    networks:
      - tdd-buffet
    expose:
      - 80

networks:
  tdd-buffet:
    external: true # this tells docker-compose that the
                   # network was created outside this project
npx @tdd-buffet/selenium start
docker-compose up -d
# Now you can tell the hub to access http://my-service

network

Stop everything

npx @tdd-buffet/selenium stop
0.4.28

11 months ago

0.4.27

1 year ago

0.4.26

1 year ago

0.4.25

1 year ago

0.4.24

2 years ago

0.4.23

2 years ago

0.4.22

3 years ago

0.4.21

3 years ago

0.4.20

3 years ago

0.4.19

3 years ago

0.4.18

3 years ago

0.4.17

3 years ago

0.4.16

4 years ago

0.4.15

4 years ago

0.4.14

4 years ago

0.4.13

4 years ago

0.4.13-alpha.0

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago