不能在Instagram上打开关注者按钮

时间:2020-09-22 19:03:10

标签: python selenium instagram

我尝试单击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()的身份尝试过。

请帮我:(

1 个答案:

答案 0 :(得分:0)

它应该起作用:

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

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