How do I install Selenium in Python on a Linux environment?
Selenium Scripts are worked to do some monotonous errands which can be mechanized utilizing headless internet browsers.
For instance, Searching for certain Questions on Different Search motors and putting away outcomes in a record by visiting each connection. This undertaking can take a long for an ordinary individual yet with the assistance of selenium contents one can without much of a stretch do it
Presently, Some of You might be thinking about what is headless internet browsers. It's only a program that can be controlled utilizing these selenium contents for automation(web errands). Selenium Scripts can be customized utilizing different dialects, for example, JavaScript, Java, Python, and so on.
Python should already be installed. It can be 2.0 or 3.0 version or upgraded.
Step:
- Installing Selenium
- Installing Webdrivers
- Creating Simple Code
Whatever Operating System You are Using Python direction is Same for Installing Selenium Library.
First Method
Open Terminal/CMD and Write Command as composed Below:
python -m pip install selenium
Second Method
python setup.py install
Installing Webdrivers:
One Can Install Firefox, Chromium, PhantomJs(Deprecated Now), and so forth.
- for utilizing Firefox you may need to introduce GeckoDriver
- for utilizing Chrome you may need to introduce Chromium
In this article, Firefox is utilized so One can Follow the Bellow Steps to Install:-