[py] Deprecate support for FTP proxies by cgoldberg · Pull Request #15906 · SeleniumHQ/selenium

User description

🔗 Related Issues

#15905

💥 What does this PR do?

This PR adds a deprecation warning when trying to set an ftpProxy.

💡 Additional Considerations

Newer browsers already don't support FTP proxies, but we will deprecate it in case users are pinned to older browsers that still support it.

🔄 Types of changes

  • Deprecation

PR Type

Other


Description

• Deprecate FTP proxy support with warning message
• Add TODO comments for future removal
• Update tests with deprecation comments
• Minor formatting improvements to docstrings


Changes walkthrough 📝

Relevant files
Enhancement
proxy.py
Add FTP proxy deprecation warning                                               

py/selenium/webdriver/common/proxy.py

• Add deprecation warning when setting ftpProxy
• Import warnings
module for deprecation handling
• Add TODO comments for future removal

• Minor docstring formatting improvements

+17/-3   
Tests
proxy_tests.py
Update tests with deprecation comments                                     

py/test/selenium/webdriver/common/proxy_tests.py

• Add TODO comments referencing FTP proxy deprecation
• Update test
comments to indicate deprecated status
• Reference GitHub issue for
future removal

+8/-0     

Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.