Skip to content

Commit bc692eb

Browse files
authored
Merge branch 'trunk' into java-example-selenium-manager
2 parents e251d0b + 215adae commit bc692eb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

examples/python/tests/interactions/test_print_options.py

Lines changed: 2 additions & 2 deletions
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/")

website_and_docs/content/documentation/webdriver/interactions/print_page.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
6464
{{< /tabpane >}}
6565

6666
### Size
67-
Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the paper size to print --- e.g. "A0", "A6", "Legal", "Tabloid", etc.
67+
Using the `getPageSize()` and `setPageSize()` methods, you can get/set the paper size to print --- e.g. "A0", "A6", "Legal", "Tabloid", etc.
6868

6969
{{< tabpane text=true >}}
7070
{{< tab header="Java" >}}

website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
6464
{{< /tabpane >}}
6565

6666
### Size
67-
Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the paper size to print --- e.g. "A0", "A6", "Legal", "Tabloid", etc.
67+
Using the `getPageSize()` and `setPageSize()` methods, you can get/set the paper size to print --- e.g. "A0", "A6", "Legal", "Tabloid", etc.
6868

6969
{{< tabpane text=true >}}
7070
{{< tab header="Java" >}}

website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
6464
{{< /tabpane >}}
6565

6666
### Size
67-
Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the paper size to print --- e.g. "A0", "A6", "Legal", "Tabloid", etc.
67+
Using the `getPageSize()` and `setPageSize()` methods, you can get/set the paper size to print --- e.g. "A0", "A6", "Legal", "Tabloid", etc.
6868

6969
{{< tabpane text=true >}}
7070
{{< tab header="Java" >}}

website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
6262
{{< /tabpane >}}
6363

6464
### 尺寸
65-
通过 `getPaperSize()``setPaperSize()` 方法,可以获取/设置要打印页面的纸张尺寸(如"A0"、"A6"、"Legal"、"Tabloid" 等)。
65+
通过 `getPageSize()``setPageSize()` 方法,可以获取/设置要打印页面的纸张尺寸(如"A0"、"A6"、"Legal"、"Tabloid" 等)。
6666

6767
{{< tabpane text=true >}}
6868
{{< tab header="Java" >}}

0 commit comments

Comments
 (0)