shital Posted May 30, 2020 Posted May 30, 2020 I want to pass credential from selenium to autoit script . Can anyone suggest
HansHenrik Posted May 30, 2020 Posted May 30, 2020 (edited) an already running AutoIt script, or an autoitscript that is invoked by selenium on demand? Edited May 30, 2020 by HansHenrik
Moderators Melba23 Posted May 30, 2020 Moderators Posted May 30, 2020 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
HansHenrik Posted May 30, 2020 Posted May 30, 2020 (edited) if you want to pass values to an already running autoit script, maybe try (actually found several AutoIt HTTP servers with a quick google search), but if you want to invoke an AutoIt script on demand, ... i'd use nginx+php myself, using php to invoke AutoIt (perhaps with ) in both cases passing values via XMLHttpRequest()'s, like with ViolentMonkey ( https://violentmonkey.github.io/ ) // ==UserScript== // @name callback test // @namespace Violentmonkey Scripts // @match *://example.org* // @grant GM.xmlHttpRequest // @version 0.1 // @author - // @description 2020-17-05, 11:13:20 PM // ==/UserScript== (function(){ unsafeWindow.addEventListener("DOMContentLoaded",function(){ let xhr=new XMLHttpRequest(); xhr.open("POST","http://127.0.0.1/callback.php"); let fd=new FormData(); fd.append("url",window.location.href.toString()); fd.append("html",unsafeWindow.document.body.outerHTML); xhr.addEventListener("load",function(){ // const response=xhr.responseText; console.log("<callback_response>\n"+response+"\n</callback_response>"); }); xhr.send(fd); }) })(); - and in there i actually use eval(response); to control the browser from my endpoint.. ^^ Edited May 30, 2020 by HansHenrik
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now