I have come across tutorials and explanation on for loop in jasmine. I still have a problem.
The pseudocode:
- navigate to site
- click on dropdown
- get count of items in dropdown
- save the count
- use that count in for loop
I can get the count and save it but the for loop does not execute.
a short snippet:
function search_options(input){
it('check drop down items', function(){
console.log('input'+input);
},delay);
}
for(var x = 1;x <= cnt; x++){//click item #1
search_options(cnt);
}
The problem is that the for loop does not execute.
It would be really great if I could get some guidance on this.