Append form to body before submitting

This commit is contained in:
Kevin Sawicki 2016-12-19 11:25:25 -08:00 committed by Birunthan Mohanathas
parent 20b70b367e
commit 873e6e5e6b

View file

@ -236,6 +236,7 @@ describe('BrowserWindow module', function () {
})
w.webContents.executeJavaScript(`
form = document.createElement('form')
document.body.appendChild(form)
form.method = 'POST'
form.target = '_blank'
form.submit()
@ -252,6 +253,7 @@ describe('BrowserWindow module', function () {
})
w.webContents.executeJavaScript(`
form = document.createElement('form')
document.body.appendChild(form)
form.method = 'POST'
form.target = '_blank'
form.enctype = 'multipart/form-data'