You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

com.thoughtworks.selenium与org.seleniumhq.selenium的区别及依赖问题咨询

Differences Between com.thoughtworks.selenium and org.seleniumhq.selenium

Hey there! Let me break down the key differences between these two Selenium artifact groups for you:

1. Origin & Ownership

  • com.thoughtworks.selenium was the original group ID when Selenium first launched, developed by the ThoughtWorks company. This was back in the project's early days before it became an independent open-source initiative.
  • org.seleniumhq.selenium is the official, current group ID for Selenium after it spun off into its own independent entity (SeleniumHQ). This is where all active, modern Selenium releases live today.

2. Version & Lifecycle Status

  • com.thoughtworks.selenium maps to Selenium 1.x (Selenium RC). This version is long deprecated—official support and updates stopped years ago, which is why you can't easily find it on Maven repositories anymore. It's effectively obsolete.
  • org.seleniumhq.selenium covers Selenium 2.x and all later versions (including modern WebDriver, Selenium Grid, etc.). This is the actively maintained branch with ongoing bug fixes, new features, and security updates.

3. API Compatibility

  • Your code relies on classes/interfaces from the old Selenium RC API: Selenium and WebDriverBackedSelenium. These were core components of the Selenium 1.x ecosystem.
  • The org.seleniumhq.selenium packages are built around the WebDriver API, which replaced the old RC model. While early Selenium 2.x versions had limited backward compatibility, most RC-specific methods have been removed or reworked in modern releases. That's why you're seeing method mismatch issues when trying to use the new group ID with your legacy code.

Recommendations

  • If you absolutely need to keep your existing code running, you might have to manually track down and add old Selenium RC JARs (from archived releases) to your project. But this is not advised—no security patches or support means you're exposing your project to unnecessary risks.
  • The better long-term fix is to refactor your code to use the modern WebDriver API from org.seleniumhq.selenium. WebDriver is the industry standard now, offering more reliable browser automation, better performance, and full ongoing support. For example, replace WebDriverBackedSelenium usage with direct instances of ChromeDriver, FirefoxDriver, or other browser-specific WebDriver implementations.

内容的提问来源于stack exchange,提问作者plaidshirt

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 08:18:06