小编use*_*362的帖子

如何修复 SOAPUI 中不支持的主次版本 52.0

我正在 SOAPUI 中使用 groovy 脚本测试步骤运行 selenium 脚本,但出现以下错误?如何解决这个问题?

java.lang.UnsupportedClassVersionError: org/openqa/selenium/support/ui/ExpectedCondition : Unsupported major.minor version 52.0
Run Code Online (Sandbox Code Playgroud)

这是我正在运行的脚本:

import org.openqa.selenium.WebElement
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.support.ui.ExpectedCondition
import org.openqa.selenium.support.ui.WebDriverWait

// Create a new instance of the Firefox driver
// Notice that the remainder of the code relies on the interface, 
// not the implementation.
WebDriver driver = new FirefoxDriver()

// And now use this to visit Google
driver.get("http://www.google.com")

// Find the text input element by its name
WebElement element = driver.findElement(By.name("q"))

// Enter something to search …
Run Code Online (Sandbox Code Playgroud)

java selenium soapui

5
推荐指数
1
解决办法
9933
查看次数

标签 统计

java ×1

selenium ×1

soapui ×1