Open File > Settings > Project from the PyCharm menu.Select your current project.Click the Python Interpreter tab within your project tab.Click the small + symbol to add a new library to the project.
Can I use selenium in PyCharm?
Go to Pycharm -> Perform (Cntrl + Alt + S) -> Select Project Interpreter -> Click on (+) icon -> Search for Selenium -> Select and Install Package -> Apply -> Ok.
How do I run selenium in Python?
- First import the webdriver and Keys classes from Selenium. …
- Next, create an instance of Chrome with the path of the driver that you downloaded through the websites of the respective browser. …
- Next, use the . …
- Once the page loads successfully, you can use the .