Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Heuristic:SeleniumHQ Selenium Warning Deprecated Proxy FTP Methods

From Leeroopedia
Knowledge Sources
Domains WebDriver, Deprecation
Last Updated 2026-02-12 01:30 GMT

Overview

Deprecation warning: the getFtpProxy() and setFtpProxy() methods on the Proxy class are deprecated and will be removed in a future release.

Description

The FTP proxy configuration methods (getFtpProxy and setFtpProxy) on org.openqa.selenium.Proxy have been marked @Deprecated in the Selenium source code. FTP proxy support is being phased out as modern browsers no longer support the FTP protocol natively. These methods continue to function but should not be used in new code.

Usage

This warning applies when you encounter code that configures FTP proxy settings via Proxy.setFtpProxy() or reads them via Proxy.getFtpProxy(). Migrate away from these methods, as they will be removed in a future Selenium release.

The Insight (Rule of Thumb)

  • Action: Stop using getFtpProxy() and setFtpProxy() on the Proxy class.
  • Value: No replacement method exists; FTP proxy configuration is no longer needed.
  • Trade-off: None. Modern browsers do not support FTP natively.

Reasoning

Browsers have dropped native FTP support (Chrome removed it in version 88, Firefox in version 90). Since WebDriver proxies only apply to browser traffic, configuring an FTP proxy through Selenium has no practical effect and the API surface is being cleaned up accordingly.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment