Invoke a js function in Chrome

Hi @joelromero,

Welcome to the UiPath community!

As @postwick pointed out, do check where you are injecting the javascript. Your DOM needs to be on the entire page. When you use the developer console, you have access to entire DOM, when using a selector on an element, you do not have access to the entire DOM. Once you fix that, use the syntax @Nithinkrishna provided.

If it still fails as you write above, then your verJuris(1) is not a function which you can call both in your chrome console (it shows “undefined”). When the console says undefined, it means there is no callable/accessible function called verJuris(1). Is verJuris a function within your html page with 1 as argument?

Here is an example/sample on how to use Inject JS activity : Use Browser Chrome: Inject JS script is not supported for this element - Help! - #8 by jeevith