mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Append form to body before submitting
This commit is contained in:
committed by
Birunthan Mohanathas
parent
20b70b367e
commit
873e6e5e6b
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user