Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress get selected dropdown value

cy.get('#id-9999').find('option:selected').should('have.text', 'Miscellaenous');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cypress #selected #dropdown
ADD COMMENT
Topic
Name
3+4 =