Error when trying to add a proxy to the webdriver

124 views
Skip to first unread message

Odell Williams

unread,
May 17, 2023, 10:07:05 AM5/17/23
to robotframework-users
I am needing to go through a proxy to get to the site I am testing. I have tried to set up a webdriver with the proxy added in but I am getting the following error:

20230517 08:58:55.626 :  INFO : Creating an instance of the Chrome WebDriver.
20230517 08:58:55.626 :  FAIL : TypeError: __init__() got an unexpected keyword argument 'proxy'

Below is the code snippet I am using:

${proxy}= Evaluate selenium.webdriver.Proxy() modules=selenium, selenium.webdriver
${proxy.http_proxy}= Set Variable 127.0.0.1:10100
Create Webdriver Chrome proxy=${proxy}

Can anyone point me in the right direction for this error?
Reply all
Reply to author
Forward
0 new messages