Skip to content

Commit

Permalink
Exposing Base (And fixing other stuff)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Mar 24, 2024
1 parent 8df9236 commit 3dc6241
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 126 deletions.
4 changes: 4 additions & 0 deletions cdp_patches/input/async_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ async def __ainit__(self) -> None:

self._base._offset_toolbar_height()

@property
def base(self):
return self._base

async def _wait_for_window(self) -> None:
max_wait = time.time() + self.window_timeout
while time.time() < max_wait:
Expand Down
4 changes: 4 additions & 0 deletions cdp_patches/input/sync_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def __init__(self, pid: Optional[int] = None, browser: Optional[sync_browsers] =

self._base._offset_toolbar_height()

@property
def base(self):
return self._base

def _wait_for_window(self) -> None:
max_wait = time.time() + self.window_timeout
while time.time() < max_wait:
Expand Down
3 changes: 2 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# This requirements are for development and testing only, not for production.
flake8==7.0.0
tox==4.14.2
pytest==8.1.1
pytest_asyncio==0.23.6
mypy==1.9.0
types-setuptools==69.2.0.20240317
black==24.3.0
isort==5.13.2
pywinauto==0.6.8
numpy==1.26.4
playwright==1.42.0
Expand Down
44 changes: 0 additions & 44 deletions scratch_driverless.py

This file was deleted.

39 changes: 0 additions & 39 deletions scratch_uia.py

This file was deleted.

42 changes: 0 additions & 42 deletions scratch_win32.py

This file was deleted.

0 comments on commit 3dc6241

Please sign in to comment.