From acb07b07d926141da1fa40226550d8037f591bfe Mon Sep 17 00:00:00 2001 From: Selenium CI Bot Date: Sun, 5 Jan 2025 17:27:55 +0000 Subject: [PATCH] Fix Python example for PrintOptions by replacing scale with page_height and page_width (#2122)[deploy site] Fix Python example for PrintOptions to address issue #2095 Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com> 215adae15c1c6e516ca0769d92f7a1916c445d14 --- documentation/_print/index.html | 134 ++++++++--------- documentation/about/_print/index.html | 130 ++++++++--------- documentation/about/copyright/index.html | 130 ++++++++--------- documentation/webdriver/_print/index.html | 4 +- .../webdriver/interactions/_print/index.html | 4 +- .../interactions/print_page/index.html | 10 +- downloads/_print/index.html | 4 +- downloads/index.html | 4 +- en/sitemap.xml | 2 +- ja/documentation/_print/index.html | 134 ++++++++--------- ja/documentation/about/_print/index.html | 130 ++++++++--------- ja/documentation/about/copyright/index.html | 130 ++++++++--------- ja/documentation/webdriver/_print/index.html | 4 +- .../webdriver/interactions/_print/index.html | 4 +- .../interactions/print_page/index.html | 10 +- ja/index.xml | 2 +- ja/sitemap.xml | 2 +- pt-br/documentation/_print/index.html | 138 +++++++++--------- pt-br/documentation/about/_print/index.html | 130 ++++++++--------- .../documentation/about/copyright/index.html | 130 ++++++++--------- .../documentation/webdriver/_print/index.html | 8 +- .../webdriver/interactions/_print/index.html | 8 +- .../interactions/print_page/index.html | 14 +- pt-br/sitemap.xml | 2 +- sitemap.xml | 2 +- zh-cn/documentation/_print/index.html | 134 ++++++++--------- zh-cn/documentation/about/_print/index.html | 130 ++++++++--------- .../documentation/about/copyright/index.html | 130 ++++++++--------- .../documentation/webdriver/_print/index.html | 4 +- .../webdriver/interactions/_print/index.html | 4 +- .../interactions/print_page/index.html | 10 +- zh-cn/index.xml | 2 +- zh-cn/sitemap.xml | 2 +- 33 files changed, 843 insertions(+), 843 deletions(-) diff --git a/documentation/_print/index.html b/documentation/_print/index.html index 22f8673f003..8c30a704459 100644 --- a/documentation/_print/index.html +++ b/documentation/_print/index.html @@ -4696,7 +4696,7 @@ View full example on GitHub

Implementation Missing

    driver.get("https://www.selenium.dev/")
     print_options = PrintOptions()
     print_options.page_ranges = ["1, 2, 3"] ## ["1", "2", "3"] or ["1-3"]

Implementation Missing

Implementation Missing

Size

Using the getPaperSize() and setPaperSize() methods, you can get/set the paper size to print — e.g. “A0”, “A6”, “Legal”, “Tabloid”, etc.