Skip to content

Commit de1b1b5

Browse files
Delta456harsha509
andauthored
[py] remove fn def and asserts from code snippet for print page (#2114)[deploy site]
Co-authored-by: Sri Harsha <[email protected]>
1 parent 79e02df commit de1b1b5

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
2929
{{< badge-implementation >}}
3030
{{< /tab >}}
3131
{{< tab header="Python" >}}
32-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
32+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
3333
{{< /tab >}}
3434
{{< tab header="JavaScript" >}}
3535
{{< badge-implementation >}}
@@ -53,7 +53,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
5353
{{< badge-implementation >}}
5454
{{< /tab >}}
5555
{{< tab header="Python" >}}
56-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
56+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L20" >}}
5757
{{< /tab >}}
5858
{{< tab header="JavaScript" >}}
5959
{{< badge-implementation >}}
@@ -77,7 +77,7 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap
7777
{{< badge-implementation >}}
7878
{{< /tab >}}
7979
{{< tab header="Python" >}}
80-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
80+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L26" >}}
8181
{{< /tab >}}
8282
{{< tab header="JavaScript" >}}
8383
{{< badge-implementation >}}
@@ -101,7 +101,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
101101
{{< badge-implementation >}}
102102
{{< /tab >}}
103103
{{< tab header="Python" >}}
104-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
104+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
105105
{{< /tab >}}
106106
{{< tab header="JavaScript" >}}
107107
{{< badge-implementation >}}
@@ -125,7 +125,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
125125
{{< badge-implementation >}}
126126
{{< /tab >}}
127127
{{< tab header="Python" >}}
128-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
128+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
129129
{{< /tab >}}
130130
{{< tab header="JavaScript" >}}
131131
{{< badge-implementation >}}
@@ -149,7 +149,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
149149
{{< badge-implementation >}}
150150
{{< /tab >}}
151151
{{< tab header="Python" >}}
152-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
152+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
153153
{{< /tab >}}
154154
{{< tab header="JavaScript" >}}
155155
{{< badge-implementation >}}
@@ -173,7 +173,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
173173
{{< badge-implementation >}}
174174
{{< /tab >}}
175175
{{< tab header="Python" >}}
176-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
176+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
177177
{{< /tab >}}
178178
{{< tab header="JavaScript" >}}
179179
{{< badge-implementation >}}
@@ -212,7 +212,7 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
212212
{{< /tab >}}
213213
{{% tab header="Python" %}}
214214
**print_page()**
215-
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
215+
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
216216
{{< /tab >}}
217217
{{< tab header="JavaScript" >}}
218218
{{< badge-implementation >}}

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
2929
{{< badge-implementation >}}
3030
{{< /tab >}}
3131
{{< tab header="Python" >}}
32-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
32+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
3333
{{< /tab >}}
3434
{{< tab header="JavaScript" >}}
3535
{{< badge-implementation >}}
@@ -53,7 +53,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
5353
{{< badge-implementation >}}
5454
{{< /tab >}}
5555
{{< tab header="Python" >}}
56-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
56+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L20" >}}
5757
{{< /tab >}}
5858
{{< tab header="JavaScript" >}}
5959
{{< badge-implementation >}}
@@ -77,7 +77,7 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap
7777
{{< badge-implementation >}}
7878
{{< /tab >}}
7979
{{< tab header="Python" >}}
80-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
80+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L26" >}}
8181
{{< /tab >}}
8282
{{< tab header="JavaScript" >}}
8383
{{< badge-implementation >}}
@@ -101,7 +101,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
101101
{{< badge-implementation >}}
102102
{{< /tab >}}
103103
{{< tab header="Python" >}}
104-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
104+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
105105
{{< /tab >}}
106106
{{< tab header="JavaScript" >}}
107107
{{< badge-implementation >}}
@@ -125,7 +125,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
125125
{{< badge-implementation >}}
126126
{{< /tab >}}
127127
{{< tab header="Python" >}}
128-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
128+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
129129
{{< /tab >}}
130130
{{< tab header="JavaScript" >}}
131131
{{< badge-implementation >}}
@@ -149,7 +149,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
149149
{{< badge-implementation >}}
150150
{{< /tab >}}
151151
{{< tab header="Python" >}}
152-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
152+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
153153
{{< /tab >}}
154154
{{< tab header="JavaScript" >}}
155155
{{< badge-implementation >}}
@@ -173,7 +173,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
173173
{{< badge-implementation >}}
174174
{{< /tab >}}
175175
{{< tab header="Python" >}}
176-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
176+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
177177
{{< /tab >}}
178178
{{< tab header="JavaScript" >}}
179179
{{< badge-implementation >}}
@@ -212,7 +212,7 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
212212
{{< /tab >}}
213213
{{% tab header="Python" %}}
214214
**print_page()**
215-
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
215+
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
216216
{{< /tab >}}
217217
{{< tab header="JavaScript" >}}
218218
{{< badge-implementation >}}

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
2929
{{< badge-implementation >}}
3030
{{< /tab >}}
3131
{{< tab header="Python" >}}
32-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
32+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
3333
{{< /tab >}}
3434
{{< tab header="JavaScript" >}}
3535
{{< badge-implementation >}}
@@ -53,7 +53,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
5353
{{< badge-implementation >}}
5454
{{< /tab >}}
5555
{{< tab header="Python" >}}
56-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
56+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L26" >}}
5757
{{< /tab >}}
5858
{{< tab header="JavaScript" >}}
5959
{{< badge-implementation >}}
@@ -77,7 +77,7 @@ Using the `getPaperSize()` and `setPaperSize()` methods, you can get/set the pap
7777
{{< badge-implementation >}}
7878
{{< /tab >}}
7979
{{< tab header="Python" >}}
80-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
80+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L27" >}}
8181
{{< /tab >}}
8282
{{< tab header="JavaScript" >}}
8383
{{< badge-implementation >}}
@@ -101,7 +101,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
101101
{{< badge-implementation >}}
102102
{{< /tab >}}
103103
{{< tab header="Python" >}}
104-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
104+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
105105
{{< /tab >}}
106106
{{< tab header="JavaScript" >}}
107107
{{< badge-implementation >}}
@@ -125,7 +125,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
125125
{{< badge-implementation >}}
126126
{{< /tab >}}
127127
{{< tab header="Python" >}}
128-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
128+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
129129
{{< /tab >}}
130130
{{< tab header="JavaScript" >}}
131131
{{< badge-implementation >}}
@@ -149,7 +149,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
149149
{{< badge-implementation >}}
150150
{{< /tab >}}
151151
{{< tab header="Python" >}}
152-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
152+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
153153
{{< /tab >}}
154154
{{< tab header="JavaScript" >}}
155155
{{< badge-implementation >}}
@@ -173,7 +173,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
173173
{{< badge-implementation >}}
174174
{{< /tab >}}
175175
{{< tab header="Python" >}}
176-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
176+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
177177
{{< /tab >}}
178178
{{< tab header="JavaScript" >}}
179179
{{< badge-implementation >}}
@@ -212,7 +212,7 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
212212
{{< /tab >}}
213213
{{% tab header="Python" %}}
214214
**print_page()**
215-
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
215+
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
216216
{{< /tab >}}
217217
{{< tab header="JavaScript" >}}
218218
{{< badge-implementation >}}

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
2727
{{< badge-implementation >}}
2828
{{< /tab >}}
2929
{{< tab header="Python" >}}
30-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L11-L15" >}}
30+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L12-L14" >}}
3131
{{< /tab >}}
3232
{{< tab header="JavaScript" >}}
3333
{{< badge-implementation >}}
@@ -51,7 +51,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
5151
{{< badge-implementation >}}
5252
{{< /tab >}}
5353
{{< tab header="Python" >}}
54-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L17-L21" >}}
54+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L18-L20" >}}
5555
{{< /tab >}}
5656
{{< tab header="JavaScript" >}}
5757
{{< badge-implementation >}}
@@ -75,7 +75,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
7575
{{< badge-implementation >}}
7676
{{< /tab >}}
7777
{{< tab header="Python" >}}
78-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L23-L27" >}}
78+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L24-L26" >}}
7979
{{< /tab >}}
8080
{{< tab header="JavaScript" >}}
8181
{{< badge-implementation >}}
@@ -99,7 +99,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
9999
{{< badge-implementation >}}
100100
{{< /tab >}}
101101
{{< tab header="Python" >}}
102-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L29-L39" >}}
102+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L30-L35" >}}
103103
{{< /tab >}}
104104
{{< tab header="JavaScript" >}}
105105
{{< badge-implementation >}}
@@ -123,7 +123,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
123123
{{< badge-implementation >}}
124124
{{< /tab >}}
125125
{{< tab header="Python" >}}
126-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L41-L46" >}}
126+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L42-L45" >}}
127127
{{< /tab >}}
128128
{{< tab header="JavaScript" >}}
129129
{{< badge-implementation >}}
@@ -147,7 +147,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
147147
{{< badge-implementation >}}
148148
{{< /tab >}}
149149
{{< tab header="Python" >}}
150-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L48-L52" >}}
150+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L49-L51" >}}
151151
{{< /tab >}}
152152
{{< tab header="JavaScript" >}}
153153
{{< badge-implementation >}}
@@ -171,7 +171,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
171171
{{< badge-implementation >}}
172172
{{< /tab >}}
173173
{{< tab header="Python" >}}
174-
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L54-L58" >}}
174+
{{< gh-codeblock path="examples/python/tests/interactions/test_print_options.py#L55-L57" >}}
175175
{{< /tab >}}
176176
{{< tab header="JavaScript" >}}
177177
{{< badge-implementation >}}
@@ -208,7 +208,7 @@ Selenium 通过其 PrintOptions、PrintsPage 和 browsingContext 类简化了这
208208
{{< /tab >}}
209209
{{% tab header="Python" %}}
210210
**print_page()**
211-
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}}
211+
{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L12-L14" >}}
212212
{{< /tab >}}
213213
{{< tab header="JavaScript" >}}
214214
{{< badge-implementation >}}

0 commit comments

Comments
 (0)