https://cypress.io logo
Hello, i am a little stuck with something here.......
# help
s
Hello, i am a little stuck with something here.... i am trying to invoke "value" attr and store them into a constant to create an array, not sure if it is possible tho 🙂 source example (created it so i can post it on stackoverflow as well): this is the code that i am trying to run: cy.get('[data-tab-name-prefix="selectedFonds[0]"]') .scrollIntoView() .should('be.visible') .find('[name="selectedFonds[0][name]"]') .find('option') .invoke('attr', 'value').then($options => { cy.log($options) }) right now it is only logging the first value of the first option... but i need all of them