Z
Z
zencd2017-12-25 13:58:46
Automation
zencd, 2017-12-25 13:58:46

Automating opening a local file in a browser?

There is a task: to automate uploading a file from a local HDD to a web interface through a browser, through the Open File Dialog. No extensions and tampermonkey can do this, because. browsers in their normal form stop such things. You also need scripted automation of the "user" actions (click on the link, etc.).
I suppose some custom build of firefox/chromium would help me. Are there any ready-made solutions and thoughts on this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Vorobyov, 2017-12-25
@zencd

Try something from: Phantomjs, Selenium Webdriver + Chromium/Firefox, CEF, HumanEmulator.

S
Snowdin, 2018-02-02
@Snowdin

Test script code on Clickerman:

lclick(100,200) // комментарии: click on link
wait(1) // wait 1 sec
keystring("filename.htm") // input a file mask or name
keypress(#enter) // confirm your input name
lclick(150,250) // click on file to select
halt // end

It remains to substitute only the necessary coordinates of clicks to configure the script and, if necessary, set the necessary delays (depending on your hardware).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question