Input direclty to firefox console
Christian Davis 00
I want to input the following script to firefox's console
var nextButton = document.getElementsByClassName("button-next"); nextButton.click(); end
The script is tested in the firefox console (Gotten by inspecting element and choosing console). How do I get unified remote to send the piece of into the browser and execute it?
It's not lua and the code written as lua doesn't function correctly either, so I assume I need to add something.
I've been toying with the https functions as a solution but I get an error now:
2016-03-26 21:53:06 LuaInstance: could not run action: target: name: closeTab error: Exception: Unknown scheme for HTTP:
This is the piece of code
[email protected] Command 4 actions.closeTab = function () local close = "close();" http.post(close, function(err, resp) if (err) then return; end print(resp) end);```