I'm trying to use Selenium with PyCharm CE. I have installed Selenium using pip install Selenium and I'm able to use it via the terminal however when I try to use it with PyCharm I get an import error
ImportError: cannot import name webdriver
Would anyone know why Selenium would work using the terminal but not even be able to import the module using PyCharm..?
Thanks,
Steps to Install Selenium WebDriver Download and install Python from the following link “python”, from the “Downloads” tab, click on “Python for windows.” Download and Install PyCharm IDE for Python Developers from the link “ Pycharm link ”.
Selenium is an open source automation testing tool that supports a number of scripting languages like Python, C#, Java, Perl, Ruby, JavaScript, etc.
To install the Selenium bindings in our system, run the command: pip install selenium. As this is done, a folder called Selenium should get created within the Python folder. To update the existing version of Selenium, run the command: pip install –U selenium.
Pycharm is an integrated development environment used explicitly for the Python programming language. In Software development, testing is crucial. Test Automation is the practice of running tests automatically, managing test data, and taking the results to improve the quality of the software.
This can be resolved in two ways:
pip install selenium
Go to Pycharm -> Perform (Cntrl + Alt + S) -> Select Project Interpreter -> Click on (+) icon -> Search for Selenium -> Select and Install Package -> Apply -> Ok
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With