Inability to running selenium in replit‏

Question:
i have tried all ways to do this
but there is incompatibility issues
what should i do?

i am tried toUse the Built-in Chromedriver , the issue has not resolved

also i use a webdrive compatible to my chrome user and uploaded to the project
but issue still persists at the line of code that have been assigning the driver

  File "main.py", line 9, in <module>
    driver = webdriver.Chrome(options=chrome_options)

Hi @EslamRagab2 , welcome to the forums!
Have you installed selenium on Replit yet?

can you give me a quick guide
my be i did something wrong while installing

Can you try entering pip install selenium into the Shell?

i did this but the issue i think incompatibility

If the original problem has not been solved, could you remove the solution (unless it has)?

Hey, @EslamRagab2 !

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

https://replit.com/@EslamRagab2/selenium-project-1#main.py

Could you try adding this code to the top:

from selenium.webdriver.common.by import chrome_options

Does it work?

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from selenium.webdriver.common.by import chrome_options
ImportError: cannot import name 'chrome_options' from 'selenium.webdriver.common.by' (/home/runner/selenium-project-1/.pythonlibs/lib/python3.10/site-packages/selenium/webdriver/common/by.py)
 

it gives me this error

Okay, what about

from selenium import chrome_options
Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from selenium import chrome_options
ImportError: cannot import name 'chrome_options' from 'selenium' (/home/runner/selenium-project-1/.pythonlibs/lib/python3.10/site-packages/selenium/__init__.py)
 

still same error

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.