【问题标题】:Cant open the followers button on Instagram无法在 Instagram 上打开关注者按钮
【发布时间】:2020-09-22 19:03:10
【问题描述】:

我尝试点击 Instagram 上的关注者按钮,但似乎没有任何效果。错误是

selenium.common.exceptions.NoSuchElementException
Message: no such element: Unable to locate element: {"method":"partial link text","selector":"followers"}"

我试过driver.find_element_by_partial_link_text("followers").click()

请帮帮我:(

【问题讨论】:

    标签: python selenium instagram


    【解决方案1】:

    它应该可以工作:

    driver.find_element_by_xpath("//a[@class='-nal3 ']").click()
    

    (您必须在个人资料网址中)

    【讨论】:

    • 它没有用。我尝试了同样的事情,但仍然selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//a[@class='-nal3 ']"}
    猜你喜欢
    • 2016-03-02
    • 2020-07-25
    • 1970-01-01
    • 1970-01-01
    • 2018-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-07
    相关资源
    最近更新 更多