Selenium Python Beginner Tutorial – Learn Selenium Python in one video | Step by Step

Free Tutorials – https://automationstepbystep.com/
Environment Variable setup: 4:08
Learn Selenium Python in ONE VIDEO | Step by Step
Today we will learn:
1. How to download python on windows
2. How to install python
3. How to install selenium python libraries
4. Download IDE – PyCharm
5. Create new project
6. Add selenium scripts
7. Run and Validate

Step 1 : download python – https://www.python.org/downloads/
Step 2 : Install and check python and pip is installed successfully
python –version
pip –version
Step 3 : install selenium libraries
pip install -U selenium
Step 4 : Download PyCharm – community edition
https://www.jetbrains.com/pycharm/download/#section=windows
Step 5 : Create new project in PyCharm
Step 6 : Adding selenium scripts to the project
note: those who face problem on click btnK replace it with “q”.
Step 7 : Run from IDE
Run from Command Line

Some Useful TIPS

About – https://www.youtube.com/channel/UCTt7pyY-o0eltq14glaG5dg/about

Playlists – https://www.youtube.com/channel/UCTt7pyY-o0eltq14glaG5dg/playlists

_____________________________________________________________
Like on Facebook :
https://www.facebook.com/automationstepbystep

Follow on Twitter:
https://twitter.com/automationsbs

Subscribe on Youtube :
http://youtube.com/automationstepbystep

________ ONLINE COURSES TO LEARN ________

Visit – http://automationstepbystep.com/

———— UI TESTING ————
Selenium Beginners – https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch – https://bit.ly/2N9xvR6
Selenium Python – https://bit.ly/2oyMp5x
Selenium Tips – https://bit.ly/2owxc50
Selenium Builder – https://bit.ly/2MKNtlq
Katalon Studio – https://bit.ly/2wARFdi
Robot Framework – https://bit.ly/2Px6Ue9

———— API TESTING ————
Web Services (API) – https://bit.ly/2MGafL7
SoapUI – https://bit.ly/2MGahmd
Postman – https://bit.ly/2wz8LrW
General – https://bit.ly/2PYdwmV

———— MOBILE TESTING ————
Mobile Playlist – https://bit.ly/2PxpeUv

———— CI | CD | DEVOPS ————
Jenkins Beginner – https://bit.ly/2MIn8EC
Jenkins Tips & Trick – https://bit.ly/2LRt6xC
Docker – https://bit.ly/2MInnzx

———— VERSION CONTROL SYSTEM ————
Git & GitHub – https://bit.ly/2Q1pagY

———— PERFORMANCE TESTING ————
JMeter Beginner – https://bit.ly/2oBbtIU
JMeter Intermediate – https://bit.ly/2oziNVB
JMeter Advanced – https://bit.ly/2Q22Y6a
JMeter Tips & Tricks – https://bit.ly/2NOfWD2
Performance Testing – https://bit.ly/2wEXbLS

———— JAVA ————
Java Beginners – https://bit.ly/2PVUcXs
Java Tips & Tricks – https://bit.ly/2CdcDnJ

———— MAVEN ————
Maven – https://bit.ly/2NJdDRS

———— OTHERS ————
Redis- https://bit.ly/2N9jyCG
Misc – https://bit.ly/2Q2q5xQ
Tools & Tips – https://bit.ly/2oBfwoR
QnA Friday- https://bit.ly/2NgwGpw
Sunday Special – https://bit.ly/2wB23BO

Ask Raghav- https://bit.ly/2CoJGWf
Interviews – https://bit.ly/2NIPPxk
All Playlists – https://bit.ly/2LSiezA

———— Follow ————
Facebook – https://www.facebook.com/automationstepbystep
Twitter – https://twitter.com/automationsbs
Youtube – http://youtube.com/automationstepbystep

source by Automation Step by Step – Raghav Pal

python tutorial

Mourad ELGORMA

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

49 réflexions sur “Selenium Python Beginner Tutorial – Learn Selenium Python in one video | Step by Step

  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    TY!!!)) Could you please do the tutorial about how to do Automation Framework(Python) with Page object and other tools, how to create correct logs, and which tools need to learn.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    ImportError: cannot import name 'webdriver' from partially initialized module 'selenium' (most likely due to a circular import)
    What do i do?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    you can just paste the webdrivers where the python is install like,,,, "C:Usersmy_user_1AppDataLocalProgramsPythonPython38-32" and don't need to specify the executable path anymore….

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    HALF OF THE VIDEO – installation of python and pycharm?! OMG…. are you going to waste 15 mins in every of your Python videos? :((( Make a separate one and keep this for Selenium only…

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi Raghav, nice videos and explanation. Can you resolve my python script error. What mistake I have done.
    I created a new script file PTest1.py (C:UsersrlakabathiniPycharmProjectsFirstSeleniumPythonTestPythonPracticeTesting) and when trying to use "from selenium import webdriver" or "import selenium", it is showing error "Unresolved reference 'selenium'" for selenium word and "Unresolved reference 'webdriver'" for webdriver.
    Python installed by default in "C:UsersrlakabathiniAppDataLocalProgramsPythonPython38-32".
    Selenium for Python got installed by default in "C:UsersrlakabathiniAppDataLocalProgramsPythonPython38-32Libsite-packages".
    PyCharm got installed (by default) in "C:Program FilesJetBrainsPyCharm Community Edition 2020.1.2".
    Path setting done. Python and pip version is showing in cmd line.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi Raghav I am getting the error in command prompt when i run "pip – install -U selenium". Error as "Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\program files\python37\Lib\site-packages\urllib3'

    Consider using the `–user` option or check the permissions. You are using pip version 19.0.3, however version 20.2b1 is available.

    You should consider upgrading via the 'python -m pip install –upgrade pip' command…

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    selenium.common.exceptions.ElementNotInteractableException: Message: Element <input class="gNO89b" name="btnK" type="submit"> is not reachable by keyboard
    This error is coming . how to solve?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hello Raghav,
    thank you for making this tutorial, it is very helpful to learn for me
    but i have a lil problem where in the video 15:42 showing there's a suggestion when you write the code "driver.set" and you can choose "set_page_load_timeout ()"
    meanwhile on my side once i write the code "driver.set" there's no any suggestions appear in my pycharm so i have to write manually one by one 🙁
    did i missed to install another packages ? or actually we can set to get suggestions on the settings ?
    please let me know, i will looking forward to it
    thank youu~

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi Raghav,
    I followed the steps up to creating a new project in PyCharm but its not recognizing request to import Selenium.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Great explanation,
    For the 14:30m,when i tape Selenium on Pycharm did not required!
    Is there any solution please ?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    I can practice selenium by using chrome driver and firefox driver and successfully working but Microsoft edge doesn't work yet. Is anything wrong on Microsoft's edge?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi Raghav,
    i have an issue with my pip version
    ex i want to install pip install html-testrunner i get error to update my version and use this statement –upgrade but still i get an error and installation failed how do i overcome this issue

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    hi Raghav,
    i am getting below error when i tried to install selenium libraries
    C:Usersdemudur>pip install -U selenium

    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03FE33A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/selenium/

    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x040106A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/selenium/

    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x040105F8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/selenium/

    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04010640>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/selenium/

    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x040103E8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/selenium/

    ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)

    ERROR: No matching distribution found for selenium

    please help me how to resolve the issue.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi,
    For me selenium folder is created in AppDataLocalProgramsPythonPython38-32Libsitpackages, i have try to execute files but not able execute selenium script, can you please let me know

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Did everything step by step, but the IndentationError wasn't fixable, whatever I tried. Uninstalled everything.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    i used microsoft edge driver and it works but it creates 2 new microsft edge.exe applications at the startup. When you restart your computer you have to disable it in task manager otherwise it pops up a cmd saying path no found. Do you know how to get rid of those extra microsft edge applications. I have like 4 of them….

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Defaulting to user installation because normal site-packages is not writeable
    I am facing this issue on running the selenium install command. Please help me :'(

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hello sir ..if I write a command like pip install selenium on command prompt this will give me a error pip are not connecting to ssl certificate….sir plz help how to remove this problem

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi m trying to install pycharm of the latest version but when m creating a new project then under the newly created project I can see that many other files got created…why so…can u help me with this.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    I downloaded chrome driver on linux , but I can't find executable file…guide me for the same….I am using linux operating system

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hello sir today only i saw this video..this is how i looking for..I am a beginner in Python selenium ..I want to continue and how to?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Thanks Raghav, this has been the only tutorial I’ve been able to find that properly shows how to install and set up the webdrivers. Keep up the great work 👍

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    I am loving this video. I am a first timer at python programming and at selenium. I find this video very simple and I am able to understand at my best. Well done Raghav!

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hello Everybody I m trying to loging gmail from python selenium below mentioned my code when I m going to gmail and put email then click on next button then the chorme driver showing

    "This browser or app may not be secure. Learn more

    Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in."

    from selenium import webdriver

    from selenium.webdriver.common.keys import Keys

    from selenium.common.exceptions import NoSuchElementException

    from time import sleep

    import os

    print("Thanks for choosing Vikash Harjeewan for your automation taskn———————————————————–")

    username ="Put your email"

    password =""

    driver = webdriver.Chrome() # Optional argument, if not specified will search path.

    driver.get("https://accounts.google.com/ServiceLogin/identifier?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1&flowName=GlifWebSignIn&flowEntry=AddSession&quot😉

    sleep(5)

    emailElem = driver.find_element_by_xpath("//*[@id='identifierId']")

    emailElem.send_keys(username)

    nextButton = driver.find_element_by_xpath("//*[@id='identifierNext']/div/button/span")

    nextButton.click()

    time.sleep(1)

    passwordElem = driver.find_element_by_id('Passwd')

    passwordElem.send_keys(password)

    signinButton = driver.find_element_by_id('signIn')

    signinButton.click()

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi Raghav,
    First, thank you so much for your Tutorials, I follow you and has been helpfull to me, you're a master!

    Second, I have a situation when I run the Test1, due the ENTER does not works, and appear the following error:

    File "C:UsersrodnePycharmProjectsfirstSeleniumTestvenvlibsite-packagesseleniumwebdriverremoteerrorhandler.py", line 242, in check_response

    raise exception_class(message, screen, stacktrace)

    selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable

    (Session info: chrome=88.0.4324.150)

    Could you help me to know why it's broken? or maybe I missed something.

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    I'm a Software Test Engineer and I know Selenium Java but I needed to learn Selenium Python to train freshers in my company and I was worried because I didn't find any well taught tutorial. But this video was a great boon for me to learn it. Thanks for the video. You are such an awesome tutor !!!

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    Hi, pip version is not coming in my cmd..showing fatal error
    I have deleted existing path and created new..what to do for this?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    my page translation btn name to arabic as i am in arab country. How do i prevent translation so my code can find element button?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    I always had a confusion with setting up the environment variables when i install any softwares especially because i use windows 8. Raghav's video made it so easy for me to understand this time . I also learned postman through your videos, excellent teaching, perfect rate of speech and clear content to understand the topics. I am going to start learning python with selenium as most companies in canada are looking for python with selenium. I only see sample project, pom and pytest for selenium topics, Do u think it covers most of the selenium topics with python?

    Répondre
  • Avatar
    avril 25, 2021 à 11:19
    Permalien

    I am unable to install selenium on my WIN10 laptop
    ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)

    ERROR: No matching distribution found for selenium

    Répondre

Laisser un commentaire