How to click facebook message button - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: How to click facebook message button (/thread-26769.html) |
How to click facebook message button - JanelleGuthrie - May-13-2020 Tried these lines, but did not work. Need help from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait as W from selenium.webdriver.support import expected_conditions as E from selenium.webdriver.common.keys import Keys from time import sleep import pandas as pd import re driver.find_element_by_xpath("//a[@id='u_ps_fetchstream_3_1_5']").click()) driver.find_element_by_link_text('Message') RE: How to click facebook message button - ndc85430 - May-13-2020 You're going to need to give more details. What exactly does "did not work" mean? What's happening and what are you expecting to happen? What exactly is your end goal? RE: How to click facebook message button - Larz60+ - May-14-2020 You're missing a lot of setup code, you have to:
|