The code snippet that you can use to select all the checkboxes on the Facebook Pages Invite Screen is:
let checkboxes = document.querySelectorAll('div[role="checkbox"]');
checkboxes.forEach(function(v,i){
checkboxes[i].click()
});This code uses the `document.querySelectorAll` method to select all the elements with the attribute `role=”checkbox”`, which are the checkboxes on the screen. Then, it uses the `forEach` method to loop through each checkbox and click on it using the `click` method. This way, you can select all the checkboxes on the screen with one line of code.
Comments
Post a Comment