Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4495

Troubleshooting • siderunner on chromium on raspberry pi

$
0
0
Hi,

Running selenium on my raspberry pi with python/pytest, it works ok, my setup method being as follows (:

def setup_method(self, method):
self.service = Service('/usr/bin/chromedriver')
self.driver = webdriver.Chrome(service=self.service)
self.vars = {}

How do I do the equililent with siderunner? I tried doing something like:

selenium-side-runner -c "goog:chromeOptions.binary='/usr/bin/chromedriver' browserName=chrome"

Whatever I do, siderunner always giving a message like 'Unable to obtain browser driver', eg

Unable to obtain browser driver.
For more information on how to install drivers see
https://www.selenium.dev/documentation/ ... _location/. Error: Error executing command for /usr/local/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/bin/linux/selenium-manager with --browser,chrome,--language-binding,javascript,--output,json,--browser-path,/usr/bin/chromedriver: /usr/local/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/bin/linux/selenium-manager: 1: Syntax error: "(" unexpected

selenium-manager was no help, the installation is broken trying to download from a URL that just returns a 404.

Statistics: Posted by adrianm758 — Thu Aug 22, 2024 11:41 am — Replies 0 — Views 10



Viewing all articles
Browse latest Browse all 4495

Trending Articles