Skip to content

Commit 132581a

Browse files
committed
fix screenshot for chrome
1 parent b2943f9 commit 132581a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "htmlcmp"
3-
version = "1.2.3"
3+
version = "1.2.4"
44
description = "Compare HTML files by rendered output"
55
classifiers = []
66
authors = [

src/htmlcmp/html_render_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def screenshot(browser: webdriver.Remote, url: str) -> Image.Image:
5151

5252
time.sleep(loaded_page_settling_time)
5353

54-
png = browser.get_full_page_screenshot_as_png()
54+
png = browser.get_screenshot_as_png()
5555
return Image.open(io.BytesIO(png))
5656

5757

0 commit comments

Comments
 (0)