I am trying to do it with a select method
Asked
Active
Viewed 69 times
2 Answers
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 })

Shahbaz Ali Khan
- 25
- 8