java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean


Solutions on the web

Solution icon of github
via GitHub by ostap-oleksyn
, 9 months ago
java.lang.String cannot be cast to java.lang.Boolean

Solution icon of github
via GitHub by vinogradoff
, 9 months ago
java.lang.String cannot be cast to java.lang.Boolean

Stack trace

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
	at org.openqa.selenium.firefox.FirefoxDriver.populateProfile(FirefoxDriver.java:183)
	at org.openqa.selenium.firefox.FirefoxDriver.extractProfile(FirefoxDriver.java:168)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:135)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createFirefoxDriver(WebDriverFactory.java:127)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createWebDriver(WebDriverFactory.java:47)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.createDriver(WebDriverThreadLocalContainer.java:240)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getAndCheckWebDriver(WebDriverThreadLocalContainer.java:113)
	at com.codeborne.selenide.WebDriverRunner.getAndCheckWebDriver(WebDriverRunner.java:136)
	at com.codeborne.selenide.impl.Navigator.navigateToAbsoluteUrl(Navigator.java:68)
	at com.codeborne.selenide.impl.Navigator.open(Navigator.java:31)
	at com.codeborne.selenide.Selenide.open(Selenide.java:81)
	at com.codeborne.selenide.Selenide.open(Selenide.java:55)
	at com.codeborne.selenide.webdriver.Tst.test(Tst.java:12)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.