Move Python examples in Windows interactions docs#2629
Move Python examples in Windows interactions docs#2629itsveence wants to merge 5 commits intoSeleniumHQ:trunkfrom
Conversation
…st 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.
…o 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.
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
Review Summary by QodoMove Python window examples to test file with translations
WalkthroughsDescription• Move Python window interaction examples from inline docs to test file • Replace inline code with gh-codeblock references in documentation • Add Japanese, Chinese, and Portuguese translations for windows docs • Create comprehensive test suite for window handling operations Diagramflowchart LR
A["Inline Python Code<br/>in Markdown"] -->|"Extract & Refactor"| B["Test File<br/>test_windows.py"]
B -->|"Reference via"| C["gh-codeblock<br/>Shortcode"]
C -->|"Update"| D["EN Documentation"]
D -->|"Translate to"| E["JA/ZH-CN/PT-BR<br/>Docs"]
File Changes1. examples/python/tests/interactions/test_windows.py
|
Code Review by Qodo
1.
|
- Wait for new window to open before reading window handles - Switch back to original window after driver.close()
Description
Moves the inline python examples for Windows interactions page to
examples/python/tests/interactions/test_windows.py:These are now referenced via the
gh-codeblockshortcode.Motivation and Context
Part of ongoing effort to run all code examples in the CI by moving all inline code examples out of the documentation Markdown, as described in the "Moving examples" section of the contributing guide
Types of changes
Checklist