Matteo Possamai
Matteo Possamai

Reputation: 574

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

Upvotes: 4

Views: 1460

Answers (1)

Saumil gauswami
Saumil gauswami

Reputation: 725

I think you named your file selenium.py

If yes: then change the name please.

Upvotes: 11

Related Questions