diff --git a/examples/python/tests/interactions/test_print_options.py b/examples/python/tests/interactions/test_print_options.py new file mode 100644 index 000000000000..8d2d9d722daa --- /dev/null +++ b/examples/python/tests/interactions/test_print_options.py @@ -0,0 +1,58 @@ +import pytest +from selenium import webdriver +from selenium.webdriver.common.print_page_options import PrintOptions + +@pytest.fixture() +def driver(): + driver = webdriver.Chrome() + yield driver + driver.quit() + +def test_orientation(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.orientation = "landscape" ## landscape or portrait + assert print_options.orientation == "landscape" + +def test_range(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.page_ranges = ["1-3"] ## ["1", "2", "3"] or ["1-3"] + assert print_options.page_ranges == ["1", "2", "3"] + +def test_size(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.scale = 0.5 ## 0.1 to 2.0`` + assert print_options.scale == 0.5 + +def test_margin(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.margin_top = 10 + print_options.margin_bottom = 10 + print_options.margin_left = 10 + print_options.margin_right = 10 + assert print_options.margin_top == 10 + assert print_options.margin_bottom == 10 + assert print_options.margin_left == 10 + assert print_options.margin_right == 10 + +def test_scale(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.scale = 0.5 ## 0.1 to 2.0 + current_scale = print_options.scale + assert current_scale == 0.5 + +def test_background(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.background = True ## True or False + assert print_options.background is True + +def test_shrink_to_fit(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + print_options.shrink_to_fit = True ## True or False + assert print_options.shrink_to_fit is True \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md index 2edfd0d697d9..a0ea153103af 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md @@ -2,9 +2,7 @@ title: "Print Page" linkTitle: "Print Page" weight: 7 -aliases: [ -"/documentation/en/support_packages/print_page/", -] +aliases: ["/documentation/en/support_packages/print_page/"] --- Printing a website is a common requirement, whether for sharing information or archiving records. @@ -22,17 +20,16 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -47,17 +44,16 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -72,17 +68,16 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -97,17 +92,16 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -122,17 +116,16 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -147,17 +140,16 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -172,16 +164,15 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether t {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md index f15d132ca30e..e1d20d67059e 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md @@ -2,9 +2,7 @@ title: "Print Page" linkTitle: "Print Page" weight: 7 -aliases: [ -"/documentation/ja/support_packages/print_page/", -] +aliases: ["/documentation/ja/support_packages/print_page/"] --- Printing a website is a common requirement, whether for sharing information or archiving records. @@ -22,17 +20,16 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -47,17 +44,16 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -72,17 +68,16 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -97,17 +92,16 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -122,17 +116,16 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -147,17 +140,16 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -172,16 +164,15 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether t {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md index 48bbccf8ed2b..e02cdd3c4cec 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md @@ -2,9 +2,7 @@ title: "Print Page" linkTitle: "Print Page" weight: 7 -aliases: [ -"/documentation/pt-br/support_packages/print_page/", -] +aliases: ["/documentation/pt-br/support_packages/print_page/"] --- Printing a website is a common requirement, whether for sharing information or archiving records. @@ -22,17 +20,16 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -47,17 +44,16 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -72,17 +68,16 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -97,17 +92,16 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -122,17 +116,16 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -147,17 +140,16 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -172,16 +164,15 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether t {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md index b22dcd54a1ff..65e7c7b73e32 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md @@ -2,9 +2,7 @@ title: "Print Page" linkTitle: "Print Page" weight: 7 -aliases: [ -"/documentation/zh-cn/support_packages/print_page/", -] +aliases: ["/documentation/zh-cn/support_packages/print_page/"] --- Printing a website is a common requirement, whether for sharing information or archiving records. @@ -22,17 +20,16 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -47,17 +44,16 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -72,17 +68,16 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -97,17 +92,16 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -122,17 +116,16 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -147,17 +140,16 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} @@ -172,16 +164,15 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether t {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< badge-implementation >}} {{< /tab >}} {{< /tabpane >}} \ No newline at end of file