Skip to content

Commit b1b3e10

Browse files
committed
Fix Python example for PrintOptions to address issue SeleniumHQ#2095
1 parent 18b7f8d commit b1b3e10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/python/tests/interactions/test_print_options.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def test_range(driver):
2323
def test_size(driver):
2424
driver.get("https://www.selenium.dev/")
2525
print_options = PrintOptions()
26-
print_options.scale = 0.5 ## 0.1 to 2.0``
27-
assert print_options.scale == 0.5
26+
print_options.page_height = 27.94 # Use page_width to assign width
27+
assert print_options.page_height == 27.94
2828

2929
def test_margin(driver):
3030
driver.get("https://www.selenium.dev/")

0 commit comments

Comments
 (0)