Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MalformedJsonExceptionin serenity.conf line# 18 #20

Open
StephenDillon opened this issue Oct 9, 2020 · 0 comments
Open

MalformedJsonExceptionin serenity.conf line# 18 #20

StephenDillon opened this issue Oct 9, 2020 · 0 comments

Comments

@StephenDillon
Copy link

StephenDillon commented Oct 9, 2020

Hello,

Running on windows with serenity-gradle-plugin:2.3.5 and serenityCoreVersion=2.3.5

Running this example I am getting Could not instantiate class org.openqa.selenium.chrome.ChromeDriver.
Took a little digging but it looks like the error is related to the below line not being valid json

download: "{prompt_for_download: false,directory_upgrade: true,default_directory:'${user.dir}/downloaded-files'}"

Caused by:
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 1 column 76 path $.
at com.google.gson.Gson.fromJson(Gson.java:947)
at com.google.gson.Gson.fromJson(Gson.java:897)
at com.google.gson.Gson.fromJson(Gson.java:846)
at com.google.gson.Gson.fromJson(Gson.java:817)
at net.thucydides.core.webdriver.CapabilityValue.asMap(CapabilityValue.java:54)
at net.thucydides.core.webdriver.CapabilityValue.asObject(CapabilityValue.java:24)
at net.thucydides.core.webdriver.capabilities.ChromePreferences.from(ChromePreferences.java:41)
at net.serenitybdd.core.webdriver.driverproviders.ChromeDriverCapabilities.addPreferencesTo(ChromeDriverCapabilities.java:136)
at net.serenitybdd.core.webdriver.driverproviders.ChromeDriverCapabilities.configuredOptions(ChromeDriverCapabilities.java:65)
at net.serenitybdd.core.webdriver.driverproviders.ChromeDriverCapabilities.getCapabilities(ChromeDriverCapabilities.java:42)
at net.serenitybdd.core.webdriver.driverproviders.ChromeDriverProvider.enhancedCapabilitiesConfiguredIn(ChromeDriverProvider.java:78)
at net.serenitybdd.core.webdriver.driverproviders.ChromeDriverProvider.newInstance(ChromeDriverProvider.java:49)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant