Move screenshot task chain in Browser

Currently, it's impossible to do screenshots in parallel.
This patch:
- makes all screenshot tasks sequential inside one browser
- starts activating target before taking screenshot
- adds a test to make sure it's possible to take screenshots across
  tabs
- starts waiting for a proper page closing after each test. This might
  finally solve the ECONNRESET issues in tests.

References #89
This commit is contained in:
Andrey Lushnikov
2017-07-18 22:10:38 -07:00
parent 2e94f9f67b
commit 21af495b65
10 changed files with 119 additions and 77 deletions

BIN
test/golden/grid-cell-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B