def __len__(self) -> int:
        """Get the number of items in local storage.

        Returns:
            The number of items in local storage.
        """
        return int(
            self.driver.execute_script(f"return window.{self.storage_key}.length;")
        )
Get the number of items in local storage.

        Returns:
            The number of items in local storage.
        
tests/integration/utils.py