🥝
Cypress Notlari
  • 🥑1. Cypress – Giriş
  • 📐2. Cypress Kurulum
  • 🥳3. Test Runner
  • 🔥4. Cypress ile İlk Test
  • ⚔️5. Cypress Destekleyen Tarayıcılar
  • 🦇6. Cypress Basit Komutlar
  • 👾7. Cypress Değişkenler (Variables)
  • 😎8. Cypress Aliases
  • 👻9. Cypress Locators
  • ☝️10. Cypress Assertions(iddia)
  • 📔11. Cypress Metin Doğrulaması
  • 🧞12. Cypress Eşzamansız Davranış(Asynchronous Behavior)
  • 🦊13. Cypress XHR ile çalışma
  • ✅14. Cypress Checkbox
  • 🍪15. Cypress Cookie İşlemleri
  • ☘️16. Cypress Get ve Post İşlemleri
  • 🦆17. Api Response Data Type Kontrolu
  • ☔18. Chai Json Schema
  • 🥳19. Chai ile Schema Oluşturma Örnekleri
  • 🇲🇬20. Cypress Fixtures
  • 🆓21. Cypress — Dashboard Hackliyoruz
  • 🎥22. Cypress Screenshotlar ve Videolar
  • 😋23. Cypress Debugging
  • 🛃24. Cypress Custom Commands
  • 📖25. Cypress Environment Variables
  • 🪝26. Cypress Hooks
  • 🎑27. Cypress Reports
  • ⛳28.Best Practices
  • Kaynakça
Powered by GitBook
On this page

14. Cypress Checkbox

// click all the checkboxes
cy.get('input[type="checkbox"]').check() 

// click a checkbox with id check
cy.get('#chk').check() 

// click a checkbox with value Cypress
cy.get('input[type="checkbox"]').check('Cypress')

// click the checkboxes with values - Java and Python
cy.get('input[type="checkbox"]').check(['Java', 'Python'])

// click the checkbox having value Java with options
cy.get('.chk').check('Java', options)

// click the checkboxes with values – Java and Python with options 
cy.get('input[type="checkbox"]').check(['Java', 'Python'], options)

// click the checkbox having class check with an option
cy.get('.chk').check({force : true})

// uncheck all the checkboxes
cy.get('input[type="checkbox"]').uncheck()

// uncheck a checkbox with id check
cy.get('#chk').uncheck()

// uncheck the checkbox with value Cypress
cy.get('input[type="checkbox"]').uncheck('Cypress')

// uncheck the checkboxes with values - Java and Python
cy.get('input[type="checkbox"]').uncheck(['Java', 'Python'])

// uncheck the checkbox having value Java with options
cy.get('.chk').uncheck('Java', options)

// uncheck the checkboxes with values – Java and Python with options 
cy.get('input[type="checkbox"]').uncheck(['Java', 'Python'], options)

// uncheck the checkbox having class check with an option 
cy.get('.chk').uncheck({force : true)
Previous13. Cypress XHR ile çalışmaNext15. Cypress Cookie İşlemleri

Last updated 2 years ago

✅