-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Getting SerenityManagedException for chrome driver "goog:chromeOptions" in serenity.properties file #2964
Comments
Try the following
|
Hello @sandeepraina-lenze, |
@sandeepraina-lenze, |
The serenity.properties file only works for non-structured properties, so we recommend moving to using the |
Try --enable-automation this may help you to probably hide the 'Chrome is being controlled by automated software' infobar You can send the excludeswitch - enable-automation to hide the message. and to disable pop up 'Disable developer mode extensions' set useAutomationExtension=false
|
Thanks @sandeepraina-lenze and @wakaleo |
i am trying to upgrade serenity from 3.1 to 3.3.4 but facing issue with chrome options .
currently i am using serenity. Properties file like below
webdriver.driver = chrome
webdriver.autodownload = true
chrome.switches = --headless;--no-sandbox;--disable-dev-shm-usage;--window-size=1920,1080
but as per latest changes i am not able to set "goog:chromeOptions"
i tried below
webdriver.capabilities.chromeOptions = --headless;--no-sandbox;--disable-dev-shm-usage;--window-size=1920,1080
webdriver.capabilities = {goog:chromeOptions {args: ["no-sandbox","disable-dev-shm-usage","window-size=1920,1080"]}}
Getting below error
�[31mnet.serenitybdd.core.exceptions.SerenityManagedException: 'com.google.common.collect.ImmutableMap com.google.common.collect.ImmutableMap.of(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)'
at org.openqa.selenium.chrome.AddHasCasting.getAdditionalCommands(AddHasCasting.java:38)
at org.openqa.selenium.chrome.ChromeDriver$ChromeDriverCommandExecutor.getExtraCommands(ChromeDriver.java:98)
at org.openqa.selenium.chrome.ChromeDriver$ChromeDriverCommandExecutor.(ChromeDriver.java:93)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:81)
at net.serenitybdd.core.webdriver.driverproviders.ChromeDriverProvider.newInstance(ChromeDriverProvider.java:73)
at net.thucydides.core.webdriver.WebDriverFactory.createWebDriver(WebDriverFactory.java:161)
at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:140)
at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:165)
at net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:156)
at net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:126)
at net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:196)
at net.serenitybdd.core.pages.PageObject.openPageAtUrl(PageObject.java:983)
at net.serenitybdd.core.pages.PageObject.openUrl(PageObject.java:929)
at com.cbre.webui.commons.WebActions.openApplication(WebActions.java:59)
at com.cbre.commons.WebBasePage$ByteBuddy$4VF3o5KA.openApplication$accessor$kXX2RUmA(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.thucydides.core.steps.BaseMethodRunner.invokeMethod(BaseMethodRunner.java:18)
at net.thucydides.core.steps.NormalMethodRunner.invokeMethodAndNotifyFailures(NormalMethodRunner.java:18)
at net.thucydides.core.steps.StepInterceptor.runNormalMethod(StepInterceptor.java:406)
at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:191)
at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:84)
at net.thucydides.core.steps.ProxyConfiguration$InterceptorDispatcher.intercept(ProxyConfiguration.java:51)
at com.cbre.commons.WebBasePage$ByteBuddy$4VF3o5KA.openApplication(Unknown Source)
at com.cbre.steps.web.Hooks.beforeScenario(Hooks.java:27)
The text was updated successfully, but these errors were encountered: