Libre Calc - List Checkboxes in Sheet

Hi
With code below. ( I am a 80yo not sure what to wrap around this code to complete macro to list checkboxes in a sheet,
And an amended code to list only checkboxes that are ticked. In a named range or list.
Original part code from here - How to find the total number of checkboxes present on web page using Selenium Webdriver - Java? - Stack Overflow.
Using Libre Calc 24.2.5.2
Your help appreciated.
Charles Harris

Blockquote
System.out.println(
driver.findElements(By.cssSelector(“input[type=‘checkbox’]”)).size()
);

Please, attach an example file.

But your link relates to selenium interpreting a website. It would not work inside Calc. (It might be possible to write a driver for selenium interpreting Calc-files. But thats another topic).
.
So here we have no driver for sheets, Calc not using css, so even a working selenium would not find a fitting cssSelector.
.
As @elmau wrote: Attach a sample and sombody may create a macro to find all checkboxes in your sheet. (Or tell, wich Website you wish to scrape…)