Skip to content

Undetected chromedriver doesnt change custom UserAgent #1219

Answered by rastinder
chibuikeogodo asked this question in Q&A
Discussion options

You must be logged in to vote

from selenium.webdriver import ChromeOptions
chrome_options = ChromeOptions()
userAgent = ua.random
print(userAgent)
chrome_option.add_argument(f"--user-agent={userAgent}")
driver = Chrome(options=chrome_option)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chibuikeogodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants