Collections:
Edge WebDriver Script with Selenium Python API
How to create a test script using Edge WebDriver with Selenium Python API?
✍: FYIcenter.com
Here is a simple test program that the Edge WebDriver Test with the Selenium Python API:
C:\fyicenter> type EdgeTest.py from selenium.webdriver import Edge driver = Edge() driver.get("http://www.google.com"); driver.quit();
Run it on the Python engine.
C:\fyicenter> python EdgeTest.py Traceback (most recent call last): File "C:\Users\fyicenter\AppData\Local\Programs\Python\Python37-32 \lib\site-packages\selenium\webdriver\common\service.py", line 76, in startstdin=PIPE) File "C:\Users\fyicenter\AppData\Local\Programs\Python\Python37-32 \lib\subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "C:\Users\fyicenter\AppData\Local\Programs\Python\Python37-32 \lib\subprocess.py", line 1178, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified During handling of the above exception, another exception occurred: Traceback (most recent call last): File "ChromeTest.py", line 2, in <module> driver = Edge() ... selenium.common.exceptions.WebDriverException: Message: 'MicrosoftWebDriver.exe' executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687
As you can see, we got an error message: 'MicrosoftWebDriver' executable needs to be in PATH environment variable. See next tutorial on how to resolve the issue.
⇒ Edge WebDriver Test with Selenium Python API
⇐ Compatibility of WebDriver Python API for Firefox
2019-11-08, 4417🔥, 0💬
Popular Posts:
How to generate test fractional numbers? Test fractional numbers are numbers with fractions that are...
How to generate test phone numbers for US and Canada? Test phone numbers are frequently needed in te...
Where to find tutorials on UFT (Unified Functional Testing) tool? I want to know how to use UFT. Her...
How to valid UUID/GUID strings? In order to help your programming or testing tasks, FYIcenter.com ha...
How to generate email addresses? To help you to obtain some email addresses for testing purpose, FYI...