How To Insert Javascript Into an IE Instance?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
NickD
Pro Scripter
Posts: 58
Joined: Fri Sep 23, 2016 2:17 pm

How To Insert Javascript Into an IE Instance?

Post by NickD » Fri Oct 19, 2018 12:04 am

I am working on a a script that uses the 2Captcha api to solve recaptcha puzzles in IE
The script is working, so far as it successfully parses the pages recaptcha site key, constructs and submits the api request, and receives the solution token.

This token now needs to be inserted into a text area on page, the most robust way to do this seems to be via javascript:

Code: Select all

document.getElementById("g-recaptcha-response").innerHTML="%Token%";
Does anybody know how I could inject this code into an existing IE instance, and run the code without refreshing the page? I have tried:

Code: Select all

IETagEventByAttrib>
But it fails to find the element.

NickD
Pro Scripter
Posts: 58
Joined: Fri Sep 23, 2016 2:17 pm

Re: How To Insert Javascript Into an IE Instance?

Post by NickD » Fri Oct 19, 2018 1:17 am

Nevermind, IEformfill seems to do the trick nicely :D

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts