Skip to content

Instantly share code, notes, and snippets.

@ryuheechul
Created February 7, 2018 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryuheechul/8dd730f0cbc11556243a93d75a7ed5e0 to your computer and use it in GitHub Desktop.
Save ryuheechul/8dd730f0cbc11556243a93d75a7ed5e0 to your computer and use it in GitHub Desktop.
Concept for scene-stealer-request
const { hss, scene, storage, market } = require('hire-scene-stealer')
hss
.scene(scene
.url('https://google.com')
.selector('img#hplogo')
.domIndex(0) // you can skip if it's 0
.viewport(900, 700)
)
.storage(storage
.type(storage.type.GCS)
// ...
)
.market(market
.type(market.type.SLACK)
// ...
})
.hire()
.then(console.log)
.catch(console.error)
const scene = (() => {
let
const url = () {
}
return {
url, selector, domIndex, viewport
}
})()
module.exports = { hss, scene, storage, market }
@ryuheechul
Copy link
Author

WIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment