Skip to content

Commit 5da24a0

Browse files
committed
bug fixes, export methods for async api
1 parent 7c10270 commit 5da24a0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pyppeteer_ghost_cursor/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def createCursor(*args, **kwargs):
1818
)
1919
if "performRandomMoves" in kwargs:
2020
kwargs["perform_random_moves"] = kwargs["performRandomMoves"]
21+
del kwargs ["performRandomMoves"]
2122
return create_cursor(*args, **kwargs)
2223

2324

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .spoof import create_cursor
2+
from .mouse_helper import install_mouse_helper
3+
4+
__all__ = ["create_cursor", "install_mouse_helper"]

pyppeteer_ghost_cursor/playwright/async_api/mouse_helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55

66
async def install_mouse_helper(page: Page):
7-
await page.add_init_script(
8-
path=Path(__file__).parent.joinpath("../js/mouseHelper.js")
9-
)
7+
await page.add_init_script(path=Path(__file__).parent.joinpath("../../js/mouseHelper.js"))

0 commit comments

Comments
 (0)