Hi,
I have successfully injected the JavaScript inside the browser to use function like
ScrollIntoView(), click() or change any CSS.
Getting data using
ChromeGetElementData> always works but for some element i need to extract data from Chrome's DevTool Console. I'm getting text inside the Console using the following code {Chrome Command Line}
Code: Select all
> document.getElementsByClassName('Fx4vi')[2].textContent;
This return the value:{Chrome Command Line}
Later that output can be transferred to clipboard using the following command(which copy the last output form DevTool command line:{Chrome Command Line}
Here is element's code:
Code: Select all
<a class="Fx4vi" href="https://www.google.com/preferences?hl=en" id="fsettl" aria-controls="fsett" aria-expanded="false" aria-haspopup="true" role="button" jsaction="foot.cst" ping="/url?sa=t&rct=j&source=webhp&url=https://www.google.com/preferences%3Fhl%3Den&ved=0ahUKEwjuxtb408nrAhVMzDgGHatsDOYQzq0CCBw">Settings</a>
I used the following code for inject the script to browser to get text directly from the DevTool Console but this doesn't giving out the result:
Code: Select all
GoSub>ExecuteJS,s1,document.getElementsByClassName('Fx4vi')[2].textContent;
wait>0.4
GoSub>ExecuteJS,s1,copy($_)
wait>0.4
GetClipBoard>myresult,0
wait>0.4
MessageModal>%myresult%
Any help with this.