Skip to content

Conversation

@mxschmitt
Copy link
Contributor

Closes #2717

async def storage_state(self, path: Union[str, Path] = None) -> StorageState:
result = await self._channel.send_return_as_dict("storageState")
async def storage_state(
self, path: Union[str, Path] = None, indexedDB: bool = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not indexed_db?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our generator layer has some magical logic which maps indexed_db (user consuming API) to indexedDB (driver). The reason for this is that we like to use the protocol.yaml compatible property names in the implementation so we can simply pass locals() to the driver.

@mxschmitt mxschmitt force-pushed the roll/1.51.0-beta-1740773665000 branch from decea3c to 82efd1d Compare March 6, 2025 22:45
@mxschmitt mxschmitt force-pushed the roll/1.51.0-beta-1740773665000 branch from 82efd1d to f535d4f Compare March 7, 2025 08:53
@mxschmitt mxschmitt merged commit 1b95464 into microsoft:main Mar 10, 2025
35 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Ports]: Backport client side changes for 1.51

2 participants