Hi below is the example…
I have a drop down from which i have to select few values(Passing inputs through configuration file).
Inside the drop down, the values are listed as Check box. I am finding it difficult to select the desired values.
Simulate click did not work when there values available in the bottom of the drop down(For which i have to drag down). Below is the screenshot and link to the site.
Tried with a javascript. Which did not give the desired result either
.PerformSearch.xaml (43.1 KB)
function chkSuburb(e,val)
{
var elem = document.getElementsByClassName(‘ms-drop bottom’);
var subList = elem[0].childNodes[0].childNodes;
var val;
for(var i =0 ; i<subList.length;i++)
{
if(subList[i].innerText.indexOf(val[i])!= -1)
{
subList[i].childNodes[0].childNodes[0].click();
console.log(val[i]);
}
}
}