当我以这种方式创建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)
有人知道为什么会这样吗?