why selenium doesn't work when i deploy a GitHub file on railaway?
picen02
HOBBYOP

2 years ago

when i deploy the program i get this error:

Traceback (most recent call last):

File "main.py", line 27, in

wbe = webdriver.Chrome("directory/chromedriver",options=chromeOptions)

TypeError: init() got multiple values for argument 'options'

Traceback (most recent call last):

File "main.py", line 27, in

wbe = webdriver.Chrome("directory/chromedriver",options=chromeOptions)

TypeError: init() got multiple values for argument 'options'

when i deploy the program i get this error:

Traceback (most recent call last):

File "main.py", line 27, in

wbe = webdriver.Chrome("directory/chromedriver",options=chromeOptions)

TypeError: init() got multiple values for argument 'options'

Traceback (most recent call last):

File "main.py", line 27, in

wbe = webdriver.Chrome("directory/chromedriver",options=chromeOptions)

TypeError: init() got multiple values for argument 'options'

i tried with this code:

chromeOptions = webdriver.ChromeOptions()

chromeOptions.add_argument("ignore-certificate-errors")

chromeOptions.add_argument('--headless=chrome')

wbe = webdriver.Chrome("directory/chromedriver",options=chromeOptions)

View Deploy details

> ⓘ Deployment information is only viewable by Project members and Railway admins.

2 Replies

2 years ago

I would highly recommend using browserless instead.

Browserless has a guide on how to use it with Selenium here -

https://www.browserless.io/docs/python


picen02
HOBBYOP

2 years ago

yes but do I have to pay to get the token? Isn't there a free way to do it?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...