Add basic inspectElement spec

This commit is contained in:
Kevin Sawicki 2016-12-20 09:07:48 -08:00 committed by Birunthan Mohanathas
parent 602db2e04f
commit 1b036a284d

View file

@ -277,4 +277,12 @@ describe('webContents module', function () {
done()
})
})
it('supports inspecting an element in the devtools', function (done) {
w.loadURL('about:blank')
w.webContents.once('devtools-opened', function () {
done()
})
w.webContents.inspectElement(10, 10)
})
})