browser.user_agent#
Functions#
get()
#
set(user_agent)
#
Set the User-Agent
of the browser's request header with a custom value. Note that not all browsers support changing user agent on the fly. Alternatively, it's recommended to set the user agent in the BrowserSettings when initiating the session.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
user_agent | str | The user agent to set. | required |