【问题标题】:selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilitiesselenium.common.exceptions.SessionNotCreatedException:消息:无法找到匹配的功能集
【发布时间】:2020-09-03 11:59:22
【问题描述】:

我在互联网上找到了一些可能的答案,但似乎都没有。有谁知道出了什么问题?

代码:

""" Quickstart script for InstaPy usage """

# imports
from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace

username='test'
password='test'

excluders = ["friend1", "friend2", "friend3"]

# get an InstaPy session!
session = InstaPy(username=username,
                  password=password,
                  headless_browser=True,
                  geckodriver_path='/usr/local/Cellar/geckodriver/0.27.0/bin/geckodriver')

with smart_run(session):
    session.set_dont_include(excluders)
    session.set_do_follow(enabled=True, times=1)

    session.follow_user_followers(['account1', 'account2', 'account3'], amount=10, randomize=False, sleep_delay=60)

错误信息

selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

我正在使用 mac、Python 3.7 和 instapy 0.6.10

【问题讨论】:

  • geckodriver_path='/usr/local/Cellar/geckodriver/0.27.0/bin/geckodriver 添加.exe 我认为这是造成它的原因。
  • 是的,我认为这也可能是问题所在,但没有帮助。我通过brew安装了firefox,然后就可以了

标签: python selenium selenium-webdriver instapy


【解决方案1】:

我 brew 安装了 firefox 然后它工作了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-30
    • 2018-05-26
    • 1970-01-01
    • 2020-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多