Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] remove fn def and asserts from code snippet for print page #2114

Merged
merged 2 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -53,7 +53,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L20" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -77,7 +77,7 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L26" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -101,7 +101,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -125,7 +125,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -149,7 +149,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -173,7 +173,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -212,7 +212,7 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
{{< /tab >}}
{{% tab header="Python" %}}
**print_page()**
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -53,7 +53,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L20" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -77,7 +77,7 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L26" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -101,7 +101,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -125,7 +125,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -149,7 +149,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -173,7 +173,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -212,7 +212,7 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
{{< /tab >}}
{{% tab header="Python" %}}
**print_page()**
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -53,7 +53,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L26" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -77,7 +77,7 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L27" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -101,7 +101,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -125,7 +125,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -149,7 +149,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -173,7 +173,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -212,7 +212,7 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
{{< /tab >}}
{{% tab header="Python" %}}
**print_page()**
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -51,7 +51,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L20" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -75,7 +75,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L26" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -99,7 +99,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -123,7 +123,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -147,7 +147,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand All @@ -171,7 +171,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< badge-implementation >}}
{{< /tab >}}
{{< tab header="Python" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down Expand Up @@ -208,7 +208,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
{{< /tab >}}
{{% tab header="Python" %}}
**print_page()**
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-implementation >}}
Expand Down
Loading