Currently i am trying to upload a image to Twitter for my reply bot. The current code i have gives no errors but it also doesn't attach the image. I've tried many approaches but i can't get it. Here is my current code.
bot = self.bot
bot.find_element_by_class_name('Icon--reply').click()
time.sleep(6)
bot.find_element_by_css_selector('input.file-input').send_keys(r'F:\Programming\Python\Tweet Bot\Videos\broom.jpg')
Here's a screenshot of the tweet i am using this snippet of code on. https://i.imgur.com/RrtMnDd.png