Hi Sandeep, you can use following code snippet to handle checkboxes on a webpage using Ruby Selenium Webdriver:
checkbox = browser.find_element(:id, "checkbox1")
checkbox = wait.until {
elem = browser.find_element(:id, "checkbox1")
elem if elem=.displayed?
}
puts "Test Passed: The check box exists" if cb
Check the checkbox
checkbox.click