I need to add a new request header to chrome webdriver. In manual test, we are using ModHeader extension to add new custom request header to the browser.
I tried following option, but did not work.
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver\
Call Method ${options} add_argument newheadername\=newheadervalue\
Create Webdriver Chrome chrome_options=${options}\
Go To ${URL}
How do I launch the web application with a custom request header?
Can we add the customer request header to chrome options and create webdriver with the options?