【发布时间】:2017-04-11 12:31:50
【问题描述】:
Need xpath of "Liked" button(Image attached here)
我尝试了这些,但出现错误。
driver.find_element_by_xpath(".//button[contains(text(), 'Liked'").click()
和
driver.find_element_by_xpath(".//button[contains(text(), 'Liked'").send_keys(Keys.RETURN)
【问题讨论】:
-
分享喜欢按钮的html。 FB 限制在我的办公室 :(
-
Html 在这里共享。 @ShoaibAkhtar pastebin.com/BbsqZi91
-
为什么首先需要使用 selenium 与 Like 按钮进行交互?除了创建虚假喜欢之外,我看不出这有什么用。
-
不是为了创造假喜欢。我只是在为 不喜欢 页面编写脚本。
标签: python facebook selenium xpath webdriver