Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import sucsesfully selenium

I have just started to try to learn to use selenium. When i try to import from selenium the module webdriver, like this:

    from selenium import webdriver

Only this but the shell say

    ImportError: cannot import name 'webdriver' from partially initialized module 'selenium' (most likely due to a circular import)

What should i do? Thanks

like image 226
Matteo Possamai Avatar asked Sep 06 '25 05:09

Matteo Possamai


1 Answers

I think you named your file selenium.py

If yes: then change the name please.

like image 151
Saumil gauswami Avatar answered Sep 07 '25 17:09

Saumil gauswami