failed while inserting javascript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-06-17 12:43 PM
Hey,
I'm trying to insert a modified (commented out one line) javascript function to a browser application. Done that two times before without a problem. This time I'm getting:
Failed while inserting javascript method:Exception from HRESULT: 0x80020101-> in mshtml.HTMLWindow2Class.IHTMLWindow2_execScript(String code, String language)
in BluePrism.ApplicationManager.HTML.clsHTMLDocument.InsertJavascriptFragment(String MethodDefinition, String& sErr)
Anyone's got an idea what's it about?
Thanks
6 REPLIES 6
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-07-17 05:34 PM
It seems the error is occurring because you selected the incorrect element to insert JavaScript fragment. Identify the body of the html page as an element and insert JavaScript to that element.Also ensure that your JavaScript code is working fine.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-07-17 05:34 PM
It seems the error is occurring because you selected the incorrect element to insert JavaScript fragment. Identify the body of the html page as an element and insert JavaScript to that element.Also ensure that your JavaScript code is working fine.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-07-17 02:10 PM
Hey,
Thanks for reply.
The code works fine in the browser's console. Still getting the same error after inserting it to BODY element though.
The function I'm trying to modify and insert is assign to a button's ""onclick="" if it makes any difference.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-07-17 05:36 PM
UP,
anyone?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-18 06:00 PM
I'm struggeling with the same getting the exception:
BluePrism.ApplicationManager.HTML.clsHTMLDocument.InvokeJavascriptMethod(String methodname, String jsonargs, Object& retval, String& sErr)
Any progress or hint on how a javascript function can be inserted and then invoked?
thank you very much
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-05-18 04:20 PM
I am also facing same issue while invoking javascript.
Please guide me if any solution is availbale.
