I have a problem when using selenium, I’m using chome drive and chromium both in the same version, I’m passing the options below but the error shown in the image occurs
option used
options = webdriver.ChromeOptions()
options.add_argument(“–no-sandbox”)
options.add_argument(“–headless=new”)
options.add_argument(“–disable-gpu”)
options.add_argument(“–disable-dev-shm-usage”)
any idea how to solve this?
alice
September 11, 2024, 6:21am
2
I had tried to run Selenium with Chrome Driver but I could not make it work either. But using Firefox Driver (geckodriver) worked as expected.
Sadly I could not make Chrome WebDriver work either, but using Firefox WebDriver works, I wrote this flake.nix file because stable-24.05 and unstable channels are outdated making firefox and geckodriver be incompatibles [ at least that happened in my workspace ].
{
description = "Selenium Environment";
inputs = {
# using nixos-unstable because geckodriver is outdated in nixos-24.05
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-util…