0

enter image description here

I am trying to do it with a select method

2 Answers2

1

Since the element you are selecting is a span and not option, you have use click here

cy.get('#station-company_id').click() //opens the dropdown
cy.get('[title="Appalachain Outdoors"]').click() //selects the item
Alapan Das
  • 17,144
  • 3
  • 29
  • 52
0

Thank you So much for your reply, I have done it with this code: .get('select#station-suppress_stock') .select(No suppression, { force: true })

        .get('select#station-suppress_affiliate_cart_to_cart')
        .select(`No suppression`, { force: true })