导入selenium后,使用出错,困扰好久的问题,请求大佬帮助
Traceback (most recent call last):
File "C:/Users/东东/PycharmProjects/untitled/23.py", line 2, in <module>
driver = webdriver.Firefox()
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\webdriver.py", line 77, in __init__
self.binary, timeout),
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\extension_connection.py", line 49, in __init__
self.binary.launch_browser(self.profile)
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable()
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\firefox_binary.py", line 103, in _wait_until_connectable
raise WebDriverException("Can't load the profile. Profile "
selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.
以上是报错信息,下面是我使用的一些版本 python 3.5.4 selenium2.48.0 firfox 35

File "C:/Users/东东/PycharmProjects/untitled/23.py", line 2, in <module>
driver = webdriver.Firefox()
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\webdriver.py", line 77, in __init__
self.binary, timeout),
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\extension_connection.py", line 49, in __init__
self.binary.launch_browser(self.profile)
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable()
File "D:\py35\lib\site-packages\selenium-2.48.0-py3.5.egg\selenium\webdriver\firefox\firefox_binary.py", line 103, in _wait_until_connectable
raise WebDriverException("Can't load the profile. Profile "
selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.
以上是报错信息,下面是我使用的一些版本 python 3.5.4 selenium2.48.0 firfox 35

...全文
相关推荐
如何安装并在pycharm使用selenium的方法
如果有更多关于Selenium或PyCharm的问题,欢迎继续探索和学习。
第一次用selenium时踩过的坑
先说一下selenium chrome的安装: 首先你要有chrome浏览器,而且版本要和接下来下载的chromedriver一致 下载chromedriver:https://sites.google.com/a/chromium.org/chromedriver/home 安装selenium的jar包: 方法一:https://www.selenium.dev/downloads/选...
selenium-wire:扩展了Selenium的Python绑定,使您能够检查浏览器发出的请求
**安装与集成**在Python环境中,可以通过pip轻松安装Selenium-Wire:```bashpip install seleniumwire```然后在Selenium测试脚本中导入并使用它
Pycharm无法使用已经安装Selenium的解决方法
通过这些步骤,您应该能够成功地在PyCharm中使用Selenium进行Web自动化测试。在编程过程中,遇到类似问题时,了解IDE的配置和环境管理是非常重要的,这有助于避免不必要的困扰,提高开发效率。
使用selenium模拟登录解决滑块验证问题的实现
本文将详细介绍如何使用Selenium模拟登录过程中遇到并解决滑块验证问题的实践方法。首先,我们明确了问题背景,部分网站如TX新闻,为了增强账户安全,引入了滑块验证,这使得单纯依靠模拟HTTP请求的方


