This would be a basic example to start with checkboxes using selenium.


The HTML input "checkbox" is an input element to enter an array of different values. Eash input type checkbox has value attribute which is used to define the value submitted by the checkbox.

Single Checkbox Demo

Clicking on the checkbox will display a success message. Keep an eye on it

Multiple Checkbox Demo

Check the below points before automating

  • Click on 'Check All' to check all checkboxes at once.
  • When you check all the checkboxes, button will change to 'Uncheck All'
  • When you uncheck at least one checkbox, button will change to 'Check All'
Disabled Checkbox Demo