-
Notifications
You must be signed in to change notification settings - Fork 103
Please add support for UserAgent in web drivers #91
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
Comments
The arguments parameter can allow you to pass additional options. For instance
I'll keep this ticket open though as I'd see this implemented as a parameter with an argument completer so it is more transparent. |
Because there's no unilateral support for all the browsers (eg: IE do not support user agent changes, Firefox require setting up a profile, etc..), I can't add an explicit useragent parameter that would accomodate all browser but as mentionned previously, I added argument completion for V4 to suggest some of the most useful parameters so it make it setting it for Chrome a little bit easier. |
Chrome / Firefox only. Throw an error if attempted with any other browser.
@MVKozlov Done. It will be available for V4 as a parameter. |
Please add support for UserAgent in web drivers
at least for Chrome it just
$Options.AddArguments("user-agent=$UserAgent")
btw, may be there is a reason for
New-SeChromeDriverOptions
andStart-SeChrome -Options $Options
way ?The text was updated successfully, but these errors were encountered: