I am getting error while using inject js as:
Inject js : Exception from HRESULT: 0x80020101.
How to solve this?
Can you check if your script working correctly?
That Error generally occurs when you have a syntax error in the Javascript,
Please try with this attached sample workflow and let me know
InjectSampleJs.zip (2.7 KB)
RegardsâŚ!!
Aksh
You may playaround with your script here
I am getting this error:
Inject js : Cannot find the UI element corresponding to this selector:
"webctrl id=âmainContentâ tag=âmainâ "
Nothing this is selector error. just clear the invoke js Activity âSelectorâ property and try it ant let me know
RegardsâŚ!!
Aksh
I have cleared selector but again i got same error Inject js : Exception from HRESULT: 0x80020101
Will you share the screensot of that error?
attachment not allowed
thanks @aksh1yadav , its working now.
Hi,
I have an issue with Inject JS myself.
I dragged the activity inside an Open Browser and added âalert(âtestâ)â in the ScriptCode field. The error thrown is âTypeError: Object expectedâ.
I tried indicating a random element in the page and also leaving the Selector field empty - none worked.
Can anyone advise how to inject javascript code directly without using a js file?
Hi @aksh1yadav ,
It seems to be working in Chrome but not IE. Will investigate the security settings.
Thanks a lot!
Hi,
I have tried with your exampleâŚIt is working fine with chrome browser but not with IE. Is there any setting that need to be changed in IEâŚ?
Regards,
Saamir
CHrome browser some selectors will very so
Hi guys, did you handle the issue related to JS in IE? Testing âhello worldâ example works for me in chrome, but not in IE, is this issue related to some Security staff? Any idea? Thanks, Frantisek.
Hey,i have some difficulties with this sample,The alert canât be work .
Here is xaml file:
Jssample.xaml (6.0 KB)
(ps,i made some change of webâs info.)
Regards