Problem: The user wants to have a method that returns a boolean if the checkbox is checked or not.
Solution: Please use the script with WebElement and isSelected() as below:
WebElement we = Windows.findElement(findWindowsObject('Object Repository/CheckBox')) println we.isSelected()
*Note: To use the WebElement, please import the library for it:
import org.openqa.selenium.WebElement as WebElement
We also record a video to demonstrate step by step for you to easily follow.