I am currently working on an automation project using Selenium and I'm struggling to figure out how to check the status of a checkbox input. Has anyone else encountered this issue before?
Here is a sample code snippet in JavaScript with jQuery:
$("input:checkbox").click(function() {
console.log($(this).is(":checked"));
if ($(this).is(":checked")) {
//true
} else {
//false
}
});