ImportError: cannot import name webdriverSolutions

When sublime writes a Python program, using from selenium import webdriver, the prompt of ImportError: cannot import name webdriver appears when running, but there is no error when running in Python IDLE.

   I checked a lot of information, and the reasons are as follows. My new name is selenium.py, which causes Python to import this file first, and then import selenium.py in the standard library.

Delete or rename the files in the current directory and then run normally.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343033&siteId=291194637