Commit d368a93
authored
Move Python examples in Windows interactions docs (#2629)
* Move Python currrent window handle and switching window example to test file
Moves the inline Python examples for getting the current window handle and switching window into examples/python/tests/interactions/test_windows.py, and references it from the docs via gh-codeblock.
* Move Python examples for closing window and switching to new window to test file
Moves the inline Python code examples for closing a window and switching to a new window into examples/python/tests/interactions/test_windows.py and
references it from the docs via gh-codeblock.
* Fix indentation in python gh-codeblock for windows documentation example
* Add windows markdown files for Japanese, Chinese, and Portuguese languages.
* Fix window handle handling in switch and close tests
- Wait for new window to open before reading window handles
- Switch back to original window after driver.close()
---------
Co-authored-by: Pallavi Sharma <write2pallavi@gmail.com>
[deploy site]1 parent 6e410b3 commit d368a93Copy full SHA for d368a93
5 files changed
+104-187Lines changed: 104 additions & 187 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- examples/python/tests/interactions
- website_and_docs/content/documentation/webdriver/interactions
Expand file treeCollapse file tree
Open diff view settings
Collapse file
examples/python/tests/interactions/test_windows.py
Copy file name to clipboard+56Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
| 3 | + |
| 4 | + |
| 5 | + |
2 | 6 | |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
Collapse file
website_and_docs/content/documentation/webdriver/interactions/windows.en.md
Copy file name to clipboardExpand all lines: website_and_docs/content/documentation/webdriver/interactions/windows.en.md+12-46Lines changed: 12 additions & 46 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
| 26 | + |
| 27 | + |
26 | 28 | |
27 | 29 | |
28 | 30 | |
| ||
46 | 48 | |
47 | 49 | |
48 | 50 | |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
| 51 | + |
| 52 | + |
81 | 53 | |
82 | 54 | |
83 | 55 | |
| ||
176 | 148 | |
177 | 149 | |
178 | 150 | |
179 | | - |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
| 151 | + |
| 152 | + |
185 | 153 | |
186 | 154 | |
187 | 155 | |
| ||
230 | 198 | |
231 | 199 | |
232 | 200 | |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
| 201 | + |
| 202 | + |
239 | 203 | |
240 | 204 | |
241 | 205 | |
| ||
278 | 242 | |
279 | 243 | |
280 | 244 | |
281 | | - |
| 245 | + |
| 246 | + |
| 247 | + |
282 | 248 | |
283 | 249 | |
284 | 250 | |
|
Collapse file
website_and_docs/content/documentation/webdriver/interactions/windows.ja.md
Copy file name to clipboardExpand all lines: website_and_docs/content/documentation/webdriver/interactions/windows.ja.md+12-47Lines changed: 12 additions & 47 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
| 24 | + |
| 25 | + |
24 | 26 | |
25 | 27 | |
26 | 28 | |
| ||
41 | 43 | |
42 | 44 | |
43 | 45 | |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
| 46 | + |
| 47 | + |
77 | 48 | |
78 | 49 | |
79 | 50 | |
| ||
169 | 140 | |
170 | 141 | |
171 | 142 | |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
| 143 | + |
| 144 | + |
178 | 145 | |
179 | 146 | |
180 | 147 | |
| ||
220 | 187 | |
221 | 188 | |
222 | 189 | |
223 | | - |
224 | | - |
225 | | - |
226 | | - |
227 | | - |
228 | | - |
| 190 | + |
| 191 | + |
229 | 192 | |
230 | 193 | |
231 | 194 | |
| ||
268 | 231 | |
269 | 232 | |
270 | 233 | |
271 | | - |
| 234 | + |
| 235 | + |
| 236 | + |
272 | 237 | |
273 | 238 | |
274 | 239 | |
|
Collapse file
website_and_docs/content/documentation/webdriver/interactions/windows.pt-br.md
Copy file name to clipboardExpand all lines: website_and_docs/content/documentation/webdriver/interactions/windows.pt-br.md+12-47Lines changed: 12 additions & 47 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
| 24 | + |
| 25 | + |
24 | 26 | |
25 | 27 | |
26 | 28 | |
| ||
47 | 49 | |
48 | 50 | |
49 | 51 | |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
| 52 | + |
| 53 | + |
83 | 54 | |
84 | 55 | |
85 | 56 | |
| ||
178 | 149 | |
179 | 150 | |
180 | 151 | |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
| 152 | + |
| 153 | + |
187 | 154 | |
188 | 155 | |
189 | 156 | |
| ||
230 | 197 | |
231 | 198 | |
232 | 199 | |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
| 200 | + |
| 201 | + |
239 | 202 | |
240 | 203 | |
241 | 204 | |
| ||
279 | 242 | |
280 | 243 | |
281 | 244 | |
282 | | - |
| 245 | + |
| 246 | + |
| 247 | + |
283 | 248 | |
284 | 249 | |
285 | 250 | |
|
0 commit comments