I have such element as span, which looks like checkbox. The main check box is hidden and is not displayed.
In Developer tool of Edge the checkbox looks like:

In Developer tool of Edge the element looks like:

on a web page this element unchecked looks:
and checked :
How can I check if the checkbox checked using Java Selenium. I need to make some tests of these checkboxes using Selenium.
But when I tried to use checkbox.isChecked() it didn't checked, because it is not a check box.
Then I tried to use Developer Tools of browser and found that nothing changing when I check\uncheck the checkbox. the checkbox itself is not displayed.


May be it will help somebody. Here is how I checked the checkbox :
Helpers.wait(1);is the custom class, which makes justThread.sleep(ms):