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

Make User Agent None by default #1215

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

Andmedoctopus
Copy link
Contributor

In Splinter 0.20.0 was introduced splinter.config.Config which has user_agent = ''
It leads to empty string of User Agent in a browser. As result any applicaiton which checks User-Agent think the browser is invalid.

I tried it with Standalone Cromium 117 in docker.
driver.execute_script("return navigator.userAgent") will return '' instead of 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36'

@fsouza
Copy link
Contributor

fsouza commented Nov 15, 2023

Thanks for contributing! Once CI passes, I'll merge it and prep 0.20.1.

@fsouza fsouza merged commit b134447 into cobrateam:master Nov 15, 2023
21 checks passed
@Andmedoctopus Andmedoctopus deleted the patch-1 branch November 16, 2023 09:42
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

Successfully merging this pull request may close these issues.

2 participants