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

preview_player
Показать описание
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"
Рекомендации по теме
Комментарии
Автор

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

phoenix_
Автор

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

SrmAccount
Автор

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

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))
Message: Can't load the profile. Profile Dir: 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:


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

I would appreciate any help.

Thanks

hippoman