使用 ant/ivy 运行构建时出现 Selenium 远程 Webdriver 错误

发布于 2025-01-07 22:50:53 字数 1858 浏览 1 评论 0原文

这是我的错误消息,我将在下面解释。

<error message="Mouse is not implemented yet for the remote WebDriver." type="java.lang.UnsupportedOperationException">java.lang.UnsupportedOperationException: Mouse is not implemented yet for the remote WebDriver

问题是当我使用 ant/ivy 运行我的 selenium 自动化脚本时,我收到了该错误。该代码本身运行良好,但我尝试使用 ant/ivy 来构建它,以便我可以在詹金斯上运行它。它确实构建正常,我在运行构建套件时遇到这个问题。

我从中央存储库中提取了以下硒包,

<dependency org="org.seleniumhq.selenium" name="selenium-server" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-java" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-firefox-driver" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-api" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-remote-client" rev="2.0b1"/>
<dependency org="org.seleniumhq.selenium" name="selenium-remote-driver" rev="2.5.0" >
<artifact name="selenium-remote-driver" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-common" rev="0.9.7376" >
<artifact name="webdriver-common" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-remote-client" rev="0.9.7376" >
<artifact name="webdriver-remote-client" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-remote-server" rev="0.9.7376" >
<artifact name="webdriver-remote-server" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-remote-common" rev="0.9.7376" >
<artifact name="webdriver-remote-common" type="jar" />

但我无法在中央存储库中找到一个位置来提取 selenium-server-standalone.jar,所以我没有。是否有一个可能更好的软件包或解决此问题的方法?

如果我的问题不够清楚,请告诉我,我是 ant/ivy 的新手。

Here is my error message, I'll explain below.

<error message="Mouse is not implemented yet for the remote WebDriver." type="java.lang.UnsupportedOperationException">java.lang.UnsupportedOperationException: Mouse is not implemented yet for the remote WebDriver

The problem is when I run my selenium automation scripts using ant/ivy I get that error. This code runs fine on it's own, but i'm trying to use ant/ivy to get it built so I can run it on jenkins. It does build ok, I get this problem when running the build suite.

I have the following selenium packages being pulled from the central repository

<dependency org="org.seleniumhq.selenium" name="selenium-server" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-java" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-firefox-driver" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-api" rev="2.5.0"/>
<dependency org="org.seleniumhq.selenium" name="selenium-remote-client" rev="2.0b1"/>
<dependency org="org.seleniumhq.selenium" name="selenium-remote-driver" rev="2.5.0" >
<artifact name="selenium-remote-driver" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-common" rev="0.9.7376" >
<artifact name="webdriver-common" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-remote-client" rev="0.9.7376" >
<artifact name="webdriver-remote-client" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-remote-server" rev="0.9.7376" >
<artifact name="webdriver-remote-server" type="jar" />
</dependency>
<dependency org="org.seleniumhq.webdriver" name="webdriver-remote-common" rev="0.9.7376" >
<artifact name="webdriver-remote-common" type="jar" />

I wasn't able to find a place in the central repository to pull down the selenium-server-standalone.jar so I don't have that. Is there a package that might work better or a workaround for this issues?

Please let me know if my question is not clear enough, I'm new to ant/ivy.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阳光①夏 2025-01-14 22:50:53

您是否可能遇到此问题?看起来您正在使用大多数 Selenium 软件包的旧版本(2.5.0)。根据 Maven Central 这些软件包现在都是2.19.0版本。也许更新到最新版本可以解决问题。

Is it possible that you are hitting this issue? It seems like you are using an older version (2.5.0) of most of those Selenium packages. According to Maven Central those packages are all at version 2.19.0 now. Maybe updating to the most recent ones may fix the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文