cy.get('#gradeLevels').each(($option) => {
const optionText = $option.text();
cy.get('#gradeLevels').select('Grade 3');
cy.log('List of Grade Levels'+ optionText) })
I'm trying the above code, but unable to capture the list. Also, want to know how to capture or log the dropdown list values. Thanks in advance.

After using the above code, I'm able to iterate the dropdown values. I can add other actions after selecting each dropdown value. cheers