java:找不到适合RemoteWebDriver(java.net.URL,org.openqa.selenium.remote.DesiredCapabilities)构造函数的构造函数

时间:2017-12-26 09:32:50

标签: java selenium selenium-webdriver

当我将selenium 3.4.0更新为3.7.1时 我收到了以下错误

Error:(88, 18) java: no suitable constructor found for RemoteWebDriver(java.net.URL,org.openqa.selenium.remote.DesiredCapabilities)
    constructor org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor,org.openqa.selenium.Capabilities) is not applicable
      (argument mismatch; java.net.URL cannot be converted to org.openqa.selenium.remote.CommandExecutor)
    constructor org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriver(java.net.URL,org.openqa.selenium.Capabilities) is not applicable
      (argument mismatch; org.openqa.selenium.remote.DesiredCapabilities cannot be converted to org.openqa.selenium.Capabilities)

0 个答案:

没有答案