Commit ccd25469 authored by ioedeveloper's avatar ioedeveloper

done callback

parent 555abaf3
......@@ -3,8 +3,8 @@ const EventEmitter = require('events')
class ClickLaunchIcon extends EventEmitter {
command (icon) {
this.api.waitForElementVisible('#icon-panel div[plugin="' + icon + '"]').click('#icon-panel div[plugin="' + icon + '"]').perform((done) => {
this.emit('complete')
done()
this.emit('complete')
})
return this
}
......
......@@ -10,16 +10,17 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
if (preloadPlugins) {
initModules(browser, () => {
browser.clickLaunchIcon('solidity')
.pause(2000)
console.log('called init after')
browser.pause(2000)
.execute(() => {
document.getElementById('autoCompile').click()
})
})
}
})
.perform(() => {
callback()
})
})
.perform(() => {
callback()
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment