1# This Source Code Form is subject to the terms of the Mozilla Public
2# License, v. 2.0. If a copy of the MPL was not distributed with this
3# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5from marionette_driver.by import By
6
7from marionette_harness import MarionetteTestCase
8
9
10class TestCheckbox(MarionetteTestCase):
11    def test_selected(self):
12        test_html = self.marionette.absolute_url("test.html")
13        self.marionette.navigate(test_html)
14        box = self.marionette.find_element(By.NAME, "myCheckBox")
15        self.assertFalse(box.is_selected())
16        box.click()
17        self.assertTrue(box.is_selected())
18