Skip to content

Commit

Permalink
Update playwright_browser_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKorzh committed Aug 21, 2024
1 parent 26222cf commit e455c97
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,14 @@ def get_page_from_request(self, request):
request.context_id, request.page_id
)
)
return self.context_manager.get_page_by_id(context_id, page_id)
return (
self.context_manager.get_page_by_id(context_id, page_id),
context_id,
page_id,
)

def goto(self, request: PuppeteerRequest):
page = self.get_page_from_request(request)
page, context_id, page_id = self.get_page_from_request(request)

async def async_goto():
url = request.action.payload()["url"]
Expand Down

0 comments on commit e455c97

Please sign in to comment.