4. Selenium Webdriver with Python Tutorial – Installing Selenium and Navigating to a web page

///4. Selenium Webdriver with Python Tutorial – Installing Selenium and Navigating to a web page

4. Selenium Webdriver with Python Tutorial – Installing Selenium and Navigating to a web page

FavoriteLoadingAdd to favorites

In this video, I show you how to install Selenium through Pip.
I also show you how to navigate to a web page using Selenium Webdriver and Python.
We navigate to the web page using FirefoxDriver and ChromeDriver. I also quickly show you how you would do it using IEDriver.

“Selenium Webdriver Python Training”
“Selenium Webdriver Python Tutorial”
“Selenium Python”
“WebdriverWait”
“FireBug”
“FirePath”
“Selenium Send_Keys”
“Selenium Click”
“Selenium Grid”
“Selenium IDE”
“Page Objects”
“UI Map”
“Xpath”
“Css Selector”
“Pip”
“FirefoxDriver”
“ChromeDriver”
“IEDriver”

source

By |2021-03-25T13:06:42+00:00March 25th, 2021|Python Video Tutorials|3 Comments

3 Comments

  1. Philip Alexandrov March 25, 2021 at 1:06 pm - Reply

    hey y'all!! I tried this on mac and received an error: Operation is not permitted. I ran it with sudo

  2. Simon Wu March 25, 2021 at 1:06 pm - Reply

    These are reallyt helpful tutorial. However, I can only run it in a ubuntu docker/container on my Mac. If I run it in my home dir, my firefox launch but never display the website I requested. After a few long seconds, I got the following error:

    Traceback (most recent call last):
    File "selenium_example.py", line 6, in <module>
    driver = webdriver.Firefox()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 80, in _init_
    self.binary, timeout)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/firefox/extension_connection.py", line 52, in _init_
    self.binary.launch_browser(self.profile, timeout=timeout)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser
    self._wait_until_connectable(timeout=timeout)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 108, in _wait_until_connectable
    % (self.profile.path))
    selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: /var/folders/pz/f0z38p690132hmzd3tlhslkr0000gn/T/tmpU4O_uh If you specified a log_file in the FirefoxBinary constructor, check it for details.

    After "import selenium and print selenium.__file__, I got the following:
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/__init__.pyc

    If I run it from my eclipse project, it complains about "unresolved import" with selenium.

    I would appreciate any help.

    Thanks

  3. AKS March 25, 2021 at 1:06 pm - Reply

    Good work on the video. really helped me . Thanks a lot !

Leave A Comment

*