|
59 | 59 | from playwright._impl._page import Worker as WorkerImpl
|
60 | 60 | from playwright._impl._playwright import Playwright as PlaywrightImpl
|
61 | 61 | from playwright._impl._selectors import Selectors as SelectorsImpl
|
62 |
| -from playwright._impl._sync_base import EventContextManager, SyncBase, mapping |
| 62 | +from playwright._impl._sync_base import ( |
| 63 | + EventContextManager, |
| 64 | + SyncBase, |
| 65 | + SyncContextManager, |
| 66 | + mapping, |
| 67 | +) |
63 | 68 | from playwright._impl._tracing import Tracing as TracingImpl
|
64 | 69 | from playwright._impl._video import Video as VideoImpl
|
65 | 70 |
|
@@ -4873,7 +4878,7 @@ def delete(self) -> NoneType:
|
4873 | 4878 | mapping.register(VideoImpl, Video)
|
4874 | 4879 |
|
4875 | 4880 |
|
4876 |
| -class Page(SyncBase): |
| 4881 | +class Page(SyncContextManager): |
4877 | 4882 | def __init__(self, obj: PageImpl):
|
4878 | 4883 | super().__init__(obj)
|
4879 | 4884 |
|
@@ -8055,7 +8060,7 @@ def expect_worker(
|
8055 | 8060 | mapping.register(PageImpl, Page)
|
8056 | 8061 |
|
8057 | 8062 |
|
8058 |
| -class BrowserContext(SyncBase): |
| 8063 | +class BrowserContext(SyncContextManager): |
8059 | 8064 | def __init__(self, obj: BrowserContextImpl):
|
8060 | 8065 | super().__init__(obj)
|
8061 | 8066 |
|
@@ -8837,7 +8842,7 @@ def detach(self) -> NoneType:
|
8837 | 8842 | mapping.register(CDPSessionImpl, CDPSession)
|
8838 | 8843 |
|
8839 | 8844 |
|
8840 |
| -class Browser(SyncBase): |
| 8845 | +class Browser(SyncContextManager): |
8841 | 8846 | def __init__(self, obj: BrowserImpl):
|
8842 | 8847 | super().__init__(obj)
|
8843 | 8848 |
|
|
0 commit comments