# Selenium on idx

**URL:** <https://community.firebasestudio.dev/t/selenium-on-idx/1878>\
**Category:** General\
**Created:** [September 10, 2024, 5:36pm UTC](https://community.firebasestudio.dev/t/selenium-on-idx/1878 "2024-09-10T17:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan\_santos](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/alan_santos/32/1701_2.png) [@alan\_santos](https://community.firebasestudio.dev/u/alan_santos)\
**Post date:** [September 10, 2024, 5:36pm UTC](https://community.firebasestudio.dev/t/selenium-on-idx/1878/1 "2024-09-10T17:36:12Z")

</div>

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

 ![erro web driver](https://us1.discourse-cdn.com/flex002/uploads/idxcommunity/original/2X/6/68e05e9972393995c7e7d47e263433dff987038b.png)

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?

---

<div class="post-metadata">

**Author:** ![alice](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/alice/32/1234_2.png) [@alice](https://community.firebasestudio.dev/u/alice)\
**Post date:** [September 11, 2024, 6:21am UTC](https://community.firebasestudio.dev/t/selenium-on-idx/1878/2 "2024-09-11T06:21:01Z")

</div>

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.

> [@How to implement "Selenium" using python](https://community.firebasestudio.dev/t/how-to-implement-selenium-using-python/1443/2):
>
> 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…
