Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Add support for file uploading in headless browsers #52

Closed
cezarypiatek opened this issue Nov 5, 2017 · 2 comments
Closed

Add support for file uploading in headless browsers #52

cezarypiatek opened this issue Nov 5, 2017 · 2 comments
Assignees

Comments

@cezarypiatek
Copy link
Owner

cezarypiatek commented Nov 5, 2017

For Chrome and Opera try to use DOM.setFileInputFiles from RemoteInterface:
https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-setFileInputFiles

Sample usage could be found here:
cyrus-and/chrome-remote-interface#164

More about Chrome RI:
https://github.com/cyrus-and/chrome-remote-interface
https://github.com/MasterDevs/ChromeDevTools

@cezarypiatek
Copy link
Owner Author

cezarypiatek commented Nov 6, 2017

I stuck with extracting value for nodeId parameter of setFileInputFiles.
I've posted question here https://stackoverflow.com/questions/47145608/extracting-nodeid-from-selenium-webdriver-for-chrome-remote-interface and here MasterDevs/ChromeDevTools#25
ChromeDevTools/devtools-protocol#66

@cezarypiatek cezarypiatek self-assigned this Nov 6, 2017
@cezarypiatek
Copy link
Owner Author

Here is the answer which explains how to get reference to the DOM node.
ChromeDevTools/devtools-protocol#66

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant