Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

Commit

Permalink
restructure waitForFunction signature to allow function argument pass…
Browse files Browse the repository at this point in the history
…over
  • Loading branch information
granitosaurus committed Apr 20, 2020
1 parent 5381816 commit 75f5ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyppeteer/domworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async def waitForXpath(
return await self._waitForSelectorOrXpath(xpath, isXPath=True, visible=visible, hidden=hidden, timeout=timeout)

async def waitForFunction(
self, pageFunction: str, polling: str = 'raf', timeout: Optional[float] = None, *args: JSFunctionArg
self, pageFunction: str, *args: JSFunctionArg, polling: str = 'raf', timeout: Optional[float] = None,
) -> 'JSHandle':
if not timeout:
timeout = self._timeoutSettings.timeout
Expand Down

0 comments on commit 75f5ee5

Please sign in to comment.