【Selenium】【BugList11】启动selenium server报错:Unsupported major.minor version 52.0

【环境信息】

python:3.6.5

平台:win7

selenium:3.11.0

selenium server:selenium-server-standalone-3.11.0.jar

jdk:1.7.0_55

 

【操作】

命令行启动 selenium server:java -jar selenium-server-standalone-3.11.0.jar

 

【报错】

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openqa/gr
id/selenium/GridLauncherV3 : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

 

【解决方法】

方法1. 参考网上方法,需升级jdk版本到1.8

方法2. 个人重新下载个低版本的selenium server:selenium-server-standalone-2.47.1.jar,可启动成功

 

 

【附录】

1.selenium server 下载地址:https://www.seleniumhq.org/download/

2.启动命令行,在selenium server文件目录下启动:java -jar selenium-server-standalone-2.47.1.jar

3.selenium server学习参考:转载 https://blog.csdn.net/gameloft9/article/details/81017262

 

【Ending】

微信公众号“粒粒的测试笔记

posted @ 2018-09-05 21:56  粒粒的测试笔记  阅读(280)  评论(0编辑  收藏  举报