Unable to find JavaScript code

Hi Team,

          I have written the   javascript code to extract the website information using getelementby class name. So, while executing in the console my script returned the array count and values. I am facing issue while returning the array as a object inside my UIpath: Please refer below code:

function(e){
var arr = , l = document.getElementsByClassName(“applicationValue”).href
;
for(var i=0; i<l.length; i++) {
arr.push(l[i].li);

return arr;}
}

Thanks
Shakeer

Hi ,

I have written the java script code to extract the website information using getelementby class name. So, while executing in the console my script returned the array count and values. I am facing issue while returning the array as a object inside my UIpath: Please refer below code:

function getInnerHtml()
{
var docs = document.getElementsByClassName(“applicationValue”);
var result = [*];
for(let i =0; i < docs.length; i++)
{
console.log(docs[i].innerHTML);
result.push(docs[i].innerHTML);
}
return results.tostring;
}

Please Help me any one.

Thanks
S.M.Shakeer

Hi @Divyashreem,

Please have a look in it.

Thanks
S,M.Shakeer

Hi @MahammadShakeer,

Why dont you use VB or C# instead of JS?

what exact data you want in this website.?

it is completely working fine in IE and chrome is not supporting any selector so just implement your workflow using IE browser.