Great update with Chrome being part of the arsenal of tools. I'm a bit puzzled on how to use the set element value. See the below example code. I'm not able to update the body. I was hoping that I could inject some html code here and there but is it only used for inputs?
Code: Select all
ChromeStart>strSessionID
ChromeNavigate>strSessionID,url,https://www.google.com/
ChromeFindElements>strSessionID,css selector,body,strElementID
ChromeSetElementValue>strSessionID,strElementID_1,THIS SHOULD BE REPLACING THE BODY INNER HTML?
**BREAKPOINT**
ChromeQuit>strSessionID
Note to self, here's the suggested code to inject stuff into the current session:
Code: Select all
Let>CHROMEDRIVER_EXE=C:\Program Files (x86)\Macro Scheduler 15\chromedriver.exe
Let>CHROMEDRIVER_PORT=12
ChromeStart>strSessionID
ChromeNavigate>strSessionID,url,https://www.google.com/
ChromeFindElements>strSessionID,css selector,body,strElementID
GoSub>ExecuteJS,strSessionID,document.body.innerHTML=\"THIS SHOULD BE REPLACING THE BODY INNER HTML?\";
SRT>ExecuteJS
Let>HTTP_POSTJSON=1
Let>body= { "script": "%ExecuteJS_Var_2%", "args": [] }
Let>CHROMEDRIVER_PORT=9515
HTTPRequest>http://localhost:%CHROMEDRIVER_PORT%/session/%ExecuteJS_Var_1%/execute,,POST,body,theResult
END>ExecuteJS
**BREAKPOINT**
ChromeQuit>strSessionID