Selenium 3.0 Chrome driver throwing exception

136 views
Skip to first unread message

King Arsan

unread,
Oct 18, 2016, 5:07:32 AM10/18/16
to Selenium Users
Hi,

Updated to Selenium 3.0 and running the test in chrome driver,


driver.switchTo().defaultContent();

is throwing below exception ?


      java.lang.IllegalAccessError: tried to access field com.google.gson.JsonNull.INSTANCE from class org.openqa.selenium.remote.BeanToJsonConverter
      at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:95)
      at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:143)
      at org.openqa.selenium.remote.BeanToJsonConverter.convertObject(BeanToJsonConverter.java:86)
      at org.openqa.selenium.remote.BeanToJsonConverter.convert(BeanToJsonConverter.java:66)
      at org.openqa.selenium.remote.http.AbstractHttpCommandCodec.encode(AbstractHttpCommandCodec.java:289)
      at org.openqa.selenium.remote.http.AbstractHttpCommandCodec.encode(AbstractHttpCommandCodec.java:147)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:157)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
      at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.defaultContent(RemoteWebDriver.java:967)
Reply all
Reply to author
Forward
0 new messages