0.55.0 • Published 2 years ago

browser-task v0.55.0

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

Do stuff in other peoples' browsers with browser-task.

Start a server:

cd ~
npm install browser-task
node browser-task/start

That should open http://localhost:9777/browser in your web browser, so that there is a worker in the queue available to do tasks.

Add a task with the API:

var browserTask = require("browser-task")

var browser = browserTask(
  "http://localhost:9777",
  function() {
    browser.pressButton(".go", thenExpectSomething)})

function thenExpectSomething() {
  browser.assertText(".my-div", "BANG!",
  thenBeDone)}
  
function thenBeDone (){
  browser.done()}

Methods

browser.assertHasClas("#my-selector", "some-class-name", callback)
browser.assertNoClass(...)
browser.pressButton("#some-button", callback)
browser.done()

Screencast

Screencast of running npm start in the browser-task folder in the console, then when the worker opens in the browser, running the browser-bridge tests to demonstrate browser-task doing stuff

Notes

review every command, at least the first few for each user

flag things with adjectives

User 2354: auto-declined message with prurient content

Why

  • you always get to a point when you want to pause the test and look in the browser anyway

  • it works on any browser you want, so you can use it for testing too

  • I will need it for screencasting tests, customer support, etc anyway

  • iframe stuff doesn't work in zombiejs. In general there are holes in the zombie/jsdom coverage

  • jsdom uses ES6. Also it is a nightmare.

  • zombie uses ws which uses bufferutils which compiles stuff and slows down npm installs dramatically

0.55.0

2 years ago

0.54.0

3 years ago

0.53.0

4 years ago

0.52.0

4 years ago

0.51.0

4 years ago

0.50.0

4 years ago

0.49.0

5 years ago

0.48.0

5 years ago

0.47.0

5 years ago

0.46.0

5 years ago

0.45.0

5 years ago

0.44.0

6 years ago

0.43.0

6 years ago

0.42.0

6 years ago

0.41.0

7 years ago

0.40.0

7 years ago

0.39.0

7 years ago

0.38.0

7 years ago

0.37.0

7 years ago

0.36.0

7 years ago

0.35.0

7 years ago