Z
Z
zyusifov112021-04-23 15:42:32
linux
zyusifov11, 2021-04-23 15:42:32

Linux, ubuntu selenium how to run on VDS server?

options = webdriver.ChromeOptions()
options.headless = True
options.add_argument('--no-sandbox')
options.add_argument("--log-level=3")
options.add_argument("--lang=en-US")
driver = webdriver.Chrome(executable_path="youtube/chromedriver", options=options)
driver.get(url)

everything is fine on the computer, but on the server it gives an error:
Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriv...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Yuriev, 2021-04-23
@zyusifov11

options.add_argument('--headless')
options.add_argument('--disable-gpu')
where?

S
SagePtr, 2021-04-23
@SagePtr

What are the permissions for youtube/chromedriver?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question