我希望在spring-boot项目旁边有硒化物。确切的详细信息可以在这里找到,但我无法从存储库打开页面。它在open((方法中失败。
我做了什么:
- 启动简单的SprigBoot项目
- 添加Selenide依赖项,基于快速启动:https://selenide.org/quick-start.html
- 尝试使用它,也是基于快速入门指南
- 将源代码推送到github
请查看存储库:https://github.com/OldEngineer1911/demo
堆栈:
- 硒6.1.1
- SpringBoot 2.6.1
- Java 17
- 使用JUnit
- Chrome版本96.0.4664.110(官方版本((64位(
- Windows 10
依赖关系问题,这个案例通过在build.gradle中添加几行来解决。这些依赖关系在整个项目中调整了selenium的版本,正是这些:
implementation 'org.seleniumhq.selenium:selenium-java:4.1.1'
implementation 'org.seleniumhq.selenium:selenium-api:4.1.1'
implementation 'org.seleniumhq.selenium:selenium-chrome-driver:4.1.1'
implementation 'org.seleniumhq.selenium:selenium-remote-driver:4.1.1'
implementation 'org.seleniumhq.selenium:selenium-firefox-driver:4.1.1'