Created
February 7, 2018 11:48
-
-
Save ryuheechul/8dd730f0cbc11556243a93d75a7ed5e0 to your computer and use it in GitHub Desktop.
Concept for scene-stealer-request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const scene = (() => { | |
let | |
const url = () { | |
} | |
return { | |
url, selector, domIndex, viewport | |
} | |
})() | |
module.exports = { hss, scene, storage, market } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WIP