title: In Cypress to test getting total number of elements from listbox and then according to the data run in loop and as per each data perform an if
body: <p>In Cyress Test writing an test of react application when I click on a Listbox in the drop down it get list of data.</p>
  
  <p>eg : 123a, 1233, 111c etc suppose have count 50
  then select each 1 by 1 however need to compare each that if its certain account perform certain checks</p>
  
  <p>in details:
  have searched and clicked the listbox but the issue i am facing how can i find the total number of elements in that listbox and need to traverse each item/value 1 by 1 and when select verify certain asserts.</p>
  
  <p>so 3 challenges where i am stuck
  1) How to get total number of elements have tried initial count=cy.get('@alias').length seems not working.</p>
  
  <p>2) after we get how can I iterate through the loop 1 at a time as after selecting 1 item as have to certain assertions.</p>
  
  <p>Thanks
  Varun Awasthi</p>