- Load extrenal website in windowBrowser with js injection
How can I programmatically load an external website the file from your computer ?
Is this a question about Atom, the text editor, or Electron, the app framework?
it is about electron
Thank you, but I want to programmatically insert a file in from external site (it is not my site and I can’t do it using the ways given above).
In the subject, you asked how to upload a file to an external site, not to get a file from one.
It probably depends what the site is.
Site is vk.com, i want open it in electron and upload photo there using js in electron
Yes, I think it would have… But did not want to use the api, the goal was to emulate user actions.Are you sure that no more way to get about this behavior in electron ? (as in selenium webdriver http://stackoverflow.com/questions/11256732/how-to-handle-windows-file-upload-using-selenium-webdriver) ?
vk.com api does not provide methods for working with audio files =(
I can simulate click events for open file dialog for to select the file, but how can I, after opening the fileDialog to choose a file from my computer ?
I don’t know.
I am not sure this will work or not if you have free time just give a try, manually upload data and check what information is posted by front end to back end.
try to reconstruct that url and hit the URL.
var myimage_url = ‘https://avatars.discourse.org/v2/letter/b/a5b964/120.png’
This will do image search in google, without selecting /uploading image