def test_is_check(self): Assert.is_false(self.check_box.is_checked()) self.check_box.click() Assert.is_true(self.check_box.is_checked())
def test_clear_cache(self): cookie = {'name': 'key', 'value': 'value'} EpamJDISite.contact_form_page.add_cookie(cookie) Assert.is_false(not len(self.get_driver().get_cookies())) EpamJDISite.contact_form_page.clear_cache() Assert.is_true(not len(self.get_driver().get_cookies()))