Skip to content

setFormValue with File as value#103

Open
ubermanu wants to merge 4 commits intocalebdwilliams:mainfrom
ubermanu:form-value-file
Open

setFormValue with File as value#103
ubermanu wants to merge 4 commits intocalebdwilliams:mainfrom
ubermanu:form-value-file

Conversation

@ubermanu
Copy link
Copy Markdown
Contributor

Ok so, somehow managed to make this work on playwright-webkit

  • The FileList implementation being immutable, I've used the DataTransfer.files API (which is not great but does the job)
  • Since the input has to be type=file, I've set some styles on it + the hidden attribute
  • I've tested it on Epiphany 43 (WebKitGTK 2.38.3) and it seem to work fine

Relates to #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant