Skip to content

Commit

Permalink
fix: object Locator can't be used in 'await' expression (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwkwc authored Dec 5, 2024
1 parent 9f33d77 commit d4601f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataframe_image/converter/browser/playwright_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ async def screenshot(self, html):
)
page = await context.new_page()
await page.set_content(self.build_valid_html(html))
locator = await page.locator("#dfi_table table")
bbox = locator.bounding_box()
locator = page.locator("#dfi_table table")
bbox = await locator.bounding_box()
width = bbox["width"]
height = bbox["height"]
await page.set_viewport_size(
Expand Down

0 comments on commit d4601f2

Please sign in to comment.