Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(AsyncPlayWrightConverter): object Locator can't be used in 'await' expression #122

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading