Collections:
Firefox WebDriver Test with Selenium Python API
How to use Firefox WebDriver with Mozilla GechoDriver?
✍: FYIcenter.com
If you are using the Firefox WebDriver with the Selenium Python API,
you need to make 'geckodriver' executable available in PATH environment variable.
1. Include path name of the 'chromedriver' executable in PATH environment variable.
C:\fyicenter> dir \fyicenter\selenium\geckodriver
14,478,647 geckodriver.exe
C:\fyicenter>set path=\fyicenter\selenium\geckodriver;%path%
2. Run the FirefoxTest.py again.
C:\fyicenter> python FirefoxTest.py
Traceback (most recent call last):
File "FirefoxTest.py", line 2, in <module>
driver = Firefox()
File "C:\Users\fyicenter\AppData\Local\Programs\Python\Python37-32
\lib\site-packages\selenium\webdriver\common\service.py", line 174,
in startstdin=PIPE)
...
selenium.common.exceptions.SessionNotCreatedException: Message:
Unable to find a matching set of capabilities
As you can see, we are getting a different error, "Unable to find a matching set of capabilities". See next tutorial on how to resolve the issue.
⇒ Compatibility of WebDriver Python API for Firefox
⇐ Firefox WebDriver Script with Selenium Python API
2019-11-08, ∼1938🔥, 0💬
Popular Posts:
How to valid IPv6 addresses? In order to help your programming or testing tasks, FYIcenter.com has d...
How to generate IP Addresses? To help you to obtain some IP addresses for testing purpose, FYIcenter...
In what order thread groups are executed in JMeter? Thread groups, including regular "Thread Groups"...
What are JMeter command line options? You can get see JMeter command line options by running this co...
How to turn off HTTP response compression in SoapUI? HTTP response compression reduces the data size...