JS Execution Parameter error

Hi

I am using inject JS activity to fetch all img src of a site.

function(x)
{
var imgs=document.GetEelementByTagName(“img”);
return imgs
}
X is the par passed as string from UiPath Studio. But return value is empty. If hardcoded in script say replacing x by 5…will get the result. Kindly help

Hi @KarthikBallary
You need to get the images dynamically ,is that right ?

All img src attributes from a site

What is your problem i.e instead of x if any value given it is returning results is that right?

It was taking not X Parameter.

from R&D I got to know Function(e, x) and Var y=parseInt(x); inside Js block will resolve d issue

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.