Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

how do i do initial setup for selenium webdriver using python

Open 1 Answers 62 Views Selenium
0 1
I have a requirement where I need to setup selenium webdriver and write script for the same using python. Can anyone guide me to tutorial for the same?

1 Answer


Here are your steps:

  • Install python on your Windows machine. Make sure that you have your PATH environment variable updated and pointing to your python installation.
  • Install Firefox browser at the default location.
  • Open the command prompt and execute below command.
    pip.exe install -U selenium

    Above command prompt will install selenium for you.

  • You can now open Python shell and you can execute below commands.

    from selenium import webdriver

    Also, you can create file using your favorite text editor and save it with the code bove. Once saved you can open command prompt, navigate to directory where your file is and execute bellow command.


    This will open Firefox browser and navigate to Firefox browser.

answered by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.