# Guide to downloading Selenium Python
Consider these:
There is a web automation tool called Selenium which basically automates your actions in chrome ("click this", "type this", "scroll here", "collect this"... etc) which was written by a bunch of awesome contributors.
As Selenium is used in most of my code in this blogger, I'll write a detailed and concise instruction on how to download Selenium Python.
You need two websites:
1. https://pypi.org/project/selenium/
2. https://www.seleniumhq.org/download/
2. Copy "pip install selenium" from the website, and then open your cmd prompt by searching for 'cmd' in your windows search
1. Go to https://www.seleniumhq.org/download/ and scroll down to the browser webdrivers. I myself use chrome so i'd choose the chrome webdriver.
6. Next, unzip the chromedriver file.
7. The extractor will automatically recommend you the folder it is stored at. for me it's Selenium_webdriver_storage.
8. Once extracted it is ready to use.
- https://dzone.com/articles/top-10-automated-software-testing-tools
- https://medium.com/@briananderson2209/best-automation-testing-tools-for-2018-top-10-reviews-8a4a19f664d2
- https://www.softwaretestinghelp.com/top-20-automation-testing-tools/
- https://www.guru99.com/automated-testing-tools.html
- https://techbeacon.com/app-dev-testing/6-test-automation-tools-developers-love
- https://en.wikipedia.org/wiki/Test_automation
- https://testguild.com/automation-testing-tools/
- https://www.outsource2india.com/software/articles/top-10-automation-testing-tools.asp
- https://www.quora.com/Which-is-the-best-automation-tool
- https://www.netsolutions.com/insights/top-10-automation-testing-tools/
There is a web automation tool called Selenium which basically automates your actions in chrome ("click this", "type this", "scroll here", "collect this"... etc) which was written by a bunch of awesome contributors.
As Selenium is used in most of my code in this blogger, I'll write a detailed and concise instruction on how to download Selenium Python.
You need two websites:
1. https://pypi.org/project/selenium/
2. https://www.seleniumhq.org/download/
Firstly:
1. Go to https://pypi.org/project/selenium/
3. Paste 'pip install selenium' into the cmd prompt.
if you run into " 'pip' is not recognized as an internal or external command," error, go ahead and try pasting "python -m pip install selenium" instead. Selenium package should be successfully installed.
Secondly:
Now we will download the webdriver1. Go to https://www.seleniumhq.org/download/ and scroll down to the browser webdrivers. I myself use chrome so i'd choose the chrome webdriver.
2. At the next page look for the next stable release of the selenium webdriver.
3. Here look for the version that suits your OS. Since i use Windows, i'll download the windows compatible version
4. Once downloaded, look into your downloads folder for the compressed zip file.
5. Next, you can store the zip file anywhere you want. For example, i create a new folder called Selenium_webdriver_storage
6. Next, unzip the chromedriver file.
7. The extractor will automatically recommend you the folder it is stored at. for me it's Selenium_webdriver_storage.
8. Once extracted it is ready to use.
Selenium Download double check:
lets see if it works... you can use this code
first we have to find the path to the webdriver.
left click on the chromedriver and click on 'properties'
#####
from selenium import webdriver
import os
path = """insert here what you copied from the properties page just now"""
selenium_webdriver_storage = os.path.join(path,'chromedriver.exe')
browser = webdriver.Chrome(executable_path = selenium_webdriver_storage)
#####
a blank chrome screen should pop up, it shows that selenium is ready for use.
first we have to find the path to the webdriver.
left click on the chromedriver and click on 'properties'
then copy and paste the highlighted field (this is the "path" to the selenium webdriver which you will need)
#####
from selenium import webdriver
import os
path = """insert here what you copied from the properties page just now"""
selenium_webdriver_storage = os.path.join(path,'chromedriver.exe')
browser = webdriver.Chrome(executable_path = selenium_webdriver_storage)
#####
a blank chrome screen should pop up, it shows that selenium is ready for use.
Comments
Post a Comment