Append form to body before submitting
This commit is contained in:
parent
20b70b367e
commit
873e6e5e6b
1 changed files with 2 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue