G:\Python3.8\lib\site-packages\selenium\webdriver\firefox\extension_connection.py:49: in init
self.binary.launch_browser(self.profile)
G:\Python3.8\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py:68: in launch_browser
self._wait_until_connectable()
self = <selenium.webdriver.firefox.firefox_binary.FirefoxBinary object at 0x0000000003E46DF0>
复制代码
def _wait_until_connectable(self):
"""Blocks until the extension is connectable in the firefox."""
count = 0
while not utils.is_connectable(self.profile.port):
if self.process.poll() is not None:
# Browser has exited
复制代码
raise WebDriverException("The browser appears to have exited "
"before we could connect. If you specified a log_file in "
"the FirefoxBinary constructor, check it for details.")
复制代码
E selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.