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

How to setup chrome switches for insecure URL #3019

Open
aybartsch opened this issue Jan 19, 2023 · 0 comments
Open

How to setup chrome switches for insecure URL #3019

aybartsch opened this issue Jan 19, 2023 · 0 comments

Comments

@aybartsch
Copy link

aybartsch commented Jan 19, 2023

Hi there. Following your suggestion I'm now using a webdriver managed by Serenity instead of using a custom driver. Thus, I was transferring all my Chrome settings to "serenity.properties". But I'm facing an issue with the list of chrome switches especially "unsafely-treat-insecure-origin-as-secure" which is having a comma-separated list of values, too:

chrome.switches=--lang=de,--log-level=3,--unsafely-treat-insecure-origin-as-secure=http://<URL1>:8080,http://<URL2>:8088

The above is not working i.e. the comma-separated list of URL is somehow ignored. I was trying to apply single and double quotes to the list of URL but this could not solve the issue. Finally, I found the below working:

chrome.switches=--unsafely-treat-insecure-origin-as-secure=http://<URL1>:8080,http://<URL2>:8088,--lang=de,--log-level=3

I don't really understand why the second setup is working while the first is not. Moreover, I'm not sure whether both the options at the end are taking into account. In the ChromeDriverProvider class I found only one entry in the ChromeOptions arg list containing the whole list of options resp. chrome switches:

chromeOptions.args[0] --> "-unsafely-treat-insecure-origin-as-secure=http://<URL1>:8080,http://<URL2>:8088,--lang=de,--log-level=3"

I would expect three entries in the ChromeOptions args array. Please, tell me if my expectation is correct. And why is the first setup not working? Thanks and best regards, André

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