Selenium驱动程序StackOverflowException

时间:2017-09-08 15:35:49

标签: selenium selenium-chromedriver

当我以这种方式创建webdriver时

  val mobileEmulation = Map("deviceName" -> "Google Nexus 5")
  val chromeOptions = Map("mobileEmulation" -> mobileEmulation)
  val capabilities = DesiredCapabilities.chrome()
  capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions)

  new ChromeDriver(capabilities)

java.lang.StackOverflowException有很多行at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:205)

有人知道为什么会这样吗?

0 个答案:

没有答案