Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
Hello,
it would be nice having an option to change user agent when initializing a webdriver.
Can you please add it in next version?
My solution:
class Browser:
...
:__init__(showWindow = True , proxy = None, userAgent = None):
...
:Args:
- showWindow : If true , will run a headless browser without showing GUI window.
- proxy : Url of any optional proxy server.
- userAgent: userAgent string to be set for browser identification
....
def __init__(self, showWindow=True, proxy=None , downloadPath:str=None, userAgent:str=None ):
if userAgent:
options.add_argument("user-agent={}".format(userAgent))
Hello, it would be nice having an option to change user agent when initializing a webdriver.
Can you please add it in next version?
My solution: