0

Is it possible to crate a link to Gnome desktop that allows me to start a particular webpage that requires logging to the site and clicking some JavaScript buttons? I have a project in my work that requires logging to a WWW-site relatively regularly and often I have to choose one particular project.

1
  • Older Gnome versions (Gnome 2) allowed shortcuts to be created. e. g. You can create a shortcut that opens Firefox on the webpage that you want. However, I'm not sure about Gnome 3 since I have no experience in it whatsoever.
    – na-no.
    Mar 23, 2018 at 11:31

1 Answer 1

1

one can open Chrome & Firefox with an URL (eg. a regular .desktop file), while one cannot inject JS alike that. most easy is to use a HTTP debugger (F12) and then script it server-side with PHP & cURL. if you really need to execute JavaScript, phantomJS can run it headless... there is still the alternative, to create a custom browser extension... which is being active on the one site, where the JS interaction is required (this can be defined in the extension's manifest). the GNOME Desktop has in every case little to do with what is happening on some remote site, except telling the web-browser which URL to visit. the search term "Browser Automation" also turns up a few Chrome plugins ...in general, one can use an actual web-browser or emulate the behavior of a web-browser (to obtain a session cookie and to stuff it into the local cookie jar, which equals being "logged in").

there is a slight difference, in between "logging in order to obtain some value and then store it" (where server-side automation makes perfect sense) or just automating the web-browser to perform certain interaction (eg. logging in and the handing over the ongoing session to the user). each site is different, so there won't be any default recipe; most web-sites not even adhere to standard auto-complete attributes.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .