Selenium Webdriver Tutorials with Python

///Selenium Webdriver Tutorials with Python

Selenium Webdriver Tutorials with Python

FavoriteLoadingAdd to favorites

In this seminar, I have mainly covered how we can start Selenium WebDriver with Python .

This video will mainly cover

1- Introduction to Python
2- Install Python
3- Install PyCharm (IDE for Python)
4- First program in Python
5- First Webdriver script.
6- How to run selenium script in Chrome browser
7- How to run selenium script in IE browser
8- Capture screenshot in Selenium using Python

Please watch: “How to Handle Element is Not Clickable at Point Exception in Selenium Webdriver”


By |2017-05-01T12:19:42+00:00April 27th, 2017|Programming Video Tutorials, Python Video Tutorials|49 Comments


  1. Cool Guy April 27, 2017 at 12:52 am - Reply

    Can you share me the code or logic for uploading a file using selenium python. Lets say the website is where we don’t have any field box for uploading. I am searching for it long time but yet to get working code. Please help if you know

  2. Ajeet Gour April 27, 2017 at 12:54 am - Reply

    can we use this similarly in ubuntu also?

  3. Roma S April 27, 2017 at 12:54 am - Reply

    How to install Selenium Webdriver for browser Chrome using Python?

  4. info info April 27, 2017 at 12:55 am - Reply

    hi Mukesh how do you change a tab in chrome browser then make another url show up on new page?

  5. Violent Chapo April 27, 2017 at 12:55 am - Reply

    can anyone help me solve this issue?
    Traceback (most recent call last):
    File "C:/Python27/", line 3, in <module>
    File "", line 62, in __init__
    File "", line 71, in start
    os.path.basename(self.path), self.start_error_message)
    WebDriverException: Message: ‘chromedriver.exe’ executable needs to be in PATH. Please see

  6. Nagag Salka April 27, 2017 at 12:57 am - Reply

    Hey Mukesh,
    so cool …………….I like python

  7. Vaibhav Ganatra April 27, 2017 at 12:57 am - Reply

    I have a virtual test environment and they do not have internet access. So in this case the pip install – u Selenium will not work for me. Is there an alternative to my situation? Is there an offline installer available?

  8. Manas Aradhya mattam April 27, 2017 at 12:59 am - Reply

    sir can u show the video how to install in a eclipse

  9. Valerii Synenko April 27, 2017 at 1:00 am - Reply

    1 000 000 likes !!!

  10. Ramses Rosas April 27, 2017 at 1:01 am - Reply

    It was an amazing start with Selenium & Python! Thanks for sharing this..

  11. Nagag Salka April 27, 2017 at 1:01 am - Reply

    Hey Mukesh,
    you are amazing, thank you very very much for this video clip

    Nagag S

  12. luck luck April 27, 2017 at 1:04 am - Reply

    mport unittest
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys

    class SearchTests(unittest.TestCase):

    def setup(self):

    # create a new Firefox session
    self.driver = webdriver.Chrome("C:\Users\Dreamthought\Downloads\chromedriver_win32")

    I am getting a bunch of error message while running the above code. Please help me to fix the issue.

    C:UsersDreamthoughtAppDataLocalProgramsPythonPython35-32python.exe "C:Program Files (x86)JetBrainsPyCharm Community Edition" true
    Testing started at 7:56 AM …
    Traceback (most recent call last):
    File "C:Program Files (x86)JetBrainsPyCharm Community Edition", line 153, in <module>
    modules = [loadSource(a[0])]
    File "C:Program Files (x86)JetBrainsPyCharm Community Edition", line 65, in loadSource
    module = imp.load_source(moduleName, fileName)
    File "", line 172, in load_source
    module = _load(spec)
    File "<frozen importlib._bootstrap="">", line 693, in _load
    File "<frozen importlib._bootstrap="">", line 673, in _load_unlocked
    File "<frozen importlib._bootstrap_external="">", line 661, in exec_module
    File "<frozen importlib._bootstrap_external="">", line 767, in get_code
    File "<frozen importlib._bootstrap_external="">", line 727, in source_to_code
    File "<frozen importlib._bootstrap="">", line 222, in _call_with_frames_removed
    File "", line 7
    def setup(self):
    IndentationError: expected an indented block

    Process finished with exit code 1

  13. AKBAR HUSSAIN April 27, 2017 at 1:05 am - Reply

    Hi Mukesh , I appreciate and like the tutorial very much ,do we have any framework for Selenium with Python , please let us know … Thanks for all your efforts .

  14. ahmad imad April 27, 2017 at 1:06 am - Reply

    whenever i type in pip on cmd, i get an error message saying (Fatal error in launcher: Unable to create process using ‘"’), can you please tell me how to fix this

  15. pantheist46n2 April 27, 2017 at 1:06 am - Reply

    love it! thank you

  16. Gourav Singh Chauhan April 27, 2017 at 1:07 am - Reply

    Great tutorial to start with. BTW Screenshot folder should be in SeleniumScripts folder for relative path

  17. samir here April 27, 2017 at 1:09 am - Reply

    great video Mukesh. can please upload more videos using python selenium WebDriver. data driven and hybrid driven framework. reports

  18. BM Krissh April 27, 2017 at 1:09 am - Reply


    Is it possible to paste the screenshot in email [not as attachment] to be sent from the selenium automation tool?

    Also, can you share the video link that you mentioned at 42:07 for sending email and attachments?

  19. dralvarez April 27, 2017 at 1:12 am - Reply

    thanks, dude, your tutorial was awesome!

  20. Shruti Agrawal April 27, 2017 at 1:13 am - Reply

    Hi Mukesh,

    Could you please tell when are you going to upload the other videos for python like you did for Java.

  21. марина ховар April 27, 2017 at 1:15 am - Reply

    These are very good tutorials, very well delivered and easy to follow. Thank you soooo much!!!

  22. Pradeep Shetty April 27, 2017 at 1:17 am - Reply

    Awesome tutorial

  23. Rahul naik April 27, 2017 at 1:18 am - Reply

    Hi Mukesh,

    I want to learn Pyunit testing, i searched at many sites but i didn’t got good clarity. could
    you please make some video classes on that. it would be more helpful.

    thank you

  24. Alexander Mudrui April 27, 2017 at 1:18 am - Reply

    very easy and good job) Thank you Mukesh))

  25. Monheima April 27, 2017 at 1:18 am - Reply

    Thank you so much, I LOVE YOU !!

  26. Warden April 27, 2017 at 1:19 am - Reply

    Thank you! Very useful!

  27. Чамкин Сергей April 27, 2017 at 1:20 am - Reply


  28. Venkataramana Reddy April 27, 2017 at 1:21 am - Reply

    Hey Mukesh, its good session where is part 2, thanks

  29. Nagarajaiah H.M April 27, 2017 at 1:25 am - Reply

    Hi Mukesh,

    Where do i get the full tutorials with python

    Nagarajaiah H M

  30. mystiquexman April 27, 2017 at 1:28 am - Reply

    Thank you so much for your video. Please continue sharing with us.

  31. Hafiz Abdullah April 27, 2017 at 1:28 am - Reply

    from selenium import webdriver

    driver = webdriver.Ie("C:\Python27\selenium\InternetExplorer\IEDriverServer.exe")

    I wrote this code in pyCharm IDE but it give me error. Please help me for solving this problem.

    driver.find_element_by_id("email").send_keys("Selenium Webdriver")



    C:Python27python.exe C:/Users/Disco/PycharmProjects/FirstProgram/SeleniumScript/
    Traceback (most recent call last):
    File "C:/Users/Disco/PycharmProjects/FirstProgram/SeleniumScript/", line 3, in <module>
    driver = webdriver.Ie("C:\Python27\selenium\InternetExplorer\IEDriverServer.exe")
    File "", line 57, in __init__
    File "", line 92, in __init__
    self.start_session(desired_capabilities, browser_profile)
    File "", line 179, in start_session
    response = self.execute(Command.NEW_SESSION, capabilities)
    File "", line 236, in execute
    File "", line 192, in check_response
    raise exception_class(message, screen, stacktrace)
    selenium.common.exceptions.WebDriverException: Message: Unexpected error launching Internet Explorer. Browser zoom level was set to 105%. It should be set to 100%

    Process finished with exit code 1

  32. Test automation April 27, 2017 at 1:31 am - Reply

    How set job in Jenkins for python selenium?

  33. Mridul Mishra April 27, 2017 at 1:31 am - Reply

    Hey Mukesh, i am big fan. One request: Can yo come up with Python tutorial anytime soon?

  34. ►►► FireBoy2708 ◄◄◄ April 27, 2017 at 1:31 am - Reply

    you are good at explaining ty

  35. Jarasznikos April 27, 2017 at 1:33 am - Reply

    Hello, I have a problem in 6.

    I have a script, download EEDriverServer, and launch. I receive error selenium.common.exceptions.NoSuchElementException: Message: Unable to find element with id == email "

    I run the same script, only change a browser. Anybody have a similar problems?

  36. rajat vijaywargiya April 27, 2017 at 1:34 am - Reply

    Hi Mukesh,
    When are you planning to roll out further the intermediate/advanced tutorials for selenium with python,specially framework design and development using selenium and python

  37. Praveen Avr April 27, 2017 at 1:35 am - Reply

    Hi Mukesh, I am not getting any suggestions even after pressing ctrl+space, I am using python 3.5, any help here please

  38. Pablo Calvano April 27, 2017 at 1:36 am - Reply

    Excellent video men! thanks a lot!! I was about to apply for a Job with this fmw/technology and it was so useful!

  39. Naveen Reddy April 27, 2017 at 1:40 am - Reply

    Awesome explanation. I like it .Can you give me link to find all selenium python web driver tutorials please?

  40. BAMOKINA MOANDA Destin April 27, 2017 at 1:41 am - Reply

    Very good tutorial! But I have problem with Internet Explorer and FireFox. I have some weird errors.

  41. Sergey Tatsiak April 27, 2017 at 1:41 am - Reply

    It is really great! Your manual is very useful.

  42. Jayshrikant Shrivastava April 27, 2017 at 1:44 am - Reply

    Dhanya ho gya gururji mein ! 😀
    Can we make any framework using Python, line pom and keyword driven FW.
    and Thanks Sir for nice tutorial !

  43. Cameron Dixon April 27, 2017 at 1:44 am - Reply

    When using Brew on OSX I did python3 and pip3

  44. keshav dwivedi April 27, 2017 at 1:44 am - Reply

    Hi mukesh, I request you to upload more videos for python as you uploaded for java so that we can learn python in detail

  45. Vinay Chand April 27, 2017 at 1:46 am - Reply

    Hi mukesh,Are you uploading more videos in Phython-Selenium?

  46. j0sh4D April 27, 2017 at 1:48 am - Reply

    thank you very much my friend

  47. Priya Supi April 27, 2017 at 1:49 am - Reply

    hey mukesh can u please tell us how to launch Firefox

  48. xueyan pan April 27, 2017 at 1:50 am - Reply

    so so nice ,thank you for your share, I am Chinese learning selenium webdriver with Python

  49. gopal vusirikayala April 27, 2017 at 1:51 am - Reply

    nice man

Leave A Comment