是否可以调整 Selenium 驱动程序以与 Selenoid 一起使用?
Is it possible to adapt Selenium driver for usage with Selenoid?
例如我有现成的 Perl Selenium 驱动程序。
https://metacpan.org/release/Selenium-Remote-Driver
如何兼容Selenoid并使用Selenoid-UI?
据我了解,Selenoid 是基于 Selenium 2.x 版本的。但是 Selenium 和 Selenoid API 不是开箱即用的。例如。 http://localhost:4444/status 输出非常不同。
当我在 Selenoid 运行ning 时尝试为 Selenium 运行 编写脚本时,我得到了 Could not create new session: Unable to find a matching set of capabilities
错误。
Selenoid 与 Selenium 协议 100% 兼容。所有 Selenium 的东西都在 /wd/hub
路线下。
例如状态 API 是 /wd/hub/status
。只需使用 http://localhost:4444/wd/hub
作为 Selenium URL 进行测试,它应该可以工作。
不要混淆 API returns Selenoid 下的数据较少。
例如根据 w3c spec 对于状态 API 只有两个字段:message
和 ready
是必需的
感谢@vania-pooh 的适当回复github issue
例如我有现成的 Perl Selenium 驱动程序。 https://metacpan.org/release/Selenium-Remote-Driver
如何兼容Selenoid并使用Selenoid-UI?
据我了解,Selenoid 是基于 Selenium 2.x 版本的。但是 Selenium 和 Selenoid API 不是开箱即用的。例如。 http://localhost:4444/status 输出非常不同。
当我在 Selenoid 运行ning 时尝试为 Selenium 运行 编写脚本时,我得到了 Could not create new session: Unable to find a matching set of capabilities
错误。
Selenoid 与 Selenium 协议 100% 兼容。所有 Selenium 的东西都在 /wd/hub
路线下。
例如状态 API 是 /wd/hub/status
。只需使用 http://localhost:4444/wd/hub
作为 Selenium URL 进行测试,它应该可以工作。
不要混淆 API returns Selenoid 下的数据较少。
例如根据 w3c spec 对于状态 API 只有两个字段:message
和 ready
是必需的
感谢@vania-pooh 的适当回复github issue