Below is the structure of the DOM
Three li are returned after I run a search. All the li have 3 values I need to validate in the below case, P, 15569, Senior big data engineer these 3 values are specific to 1 li only similar other two have different values.
I am using the below script and is working fine.
//Values from first li
cy.get('[role="listbox"]')
.contains('P')
cy.get('[role="listbox"]')
.contains('15569')
cy.get('[role="listbox"]')
.contains('Senior big data engineer')
//Values from Second li
cy.get('[role="listbox"]')
.contains('A')
cy.get('[role="listbox"]')
.contains('15585')
cy.get('[role="listbox"]')
.contains('DB Developer')
I wanted to know if is there another way I can select the li directly and also validate the href link too.
