@@ -2494,8 +2494,10 @@ def is_checked(self, selector, by="css selector", timeout=None):
24942494 kind = self.get_attribute(selector, "type", by=by, timeout=timeout)
24952495 if kind != "checkbox" and kind != "radio":
24962496 raise Exception("Expecting a checkbox or a radio button element!")
2497- return self.get_attribute(
2498- selector, "checked", by=by, timeout=timeout, hard_fail=False
2497+ return bool(
2498+ self.get_attribute(
2499+ selector, "checked", by=by, timeout=timeout, hard_fail=False
2500+ )
24992501 )
25002502
25012503 def is_selected(self, selector, by="css selector", timeout=None):
@@ -15166,9 +15168,12 @@ def setUp(self, masterqa_mode=False):
1516615168 self.driver.close()
1516715169 self.switch_to_window(0)
1516815170 if self._crumbs:
15169- self.wait_for_ready_state_complete()
15170- with suppress(Exception):
15171- self.driver.delete_all_cookies()
15171+ if self.binary_location == "chs":
15172+ self.delete_session_storage()
15173+ else:
15174+ self.wait_for_ready_state_complete()
15175+ with suppress(Exception):
15176+ self.driver.delete_all_cookies()
1517215177 if self._reuse_session and sb_config.shared_driver and has_url:
1517315178 good_start_page = False
1517415179 if self.recorder_ext:
0 commit comments