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);
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;
}