Python Selenium Sales Group FB

元气小坏坏 提交于 2021-02-10 14:35:22

问题


Can i help me , i have a problem trying get div for upload images on sales group in faceboook.

I have already a code in python where can write automatic text in the form of the sales group but i dont cant upload image in new version facebook , 1 year ago this is posibility but now facebook dont have a input file

Previously the code was as follows

**photo_element = driver.find_element(By.XPATH,'//input[@type="file"]')
photo_element.send_keys(photo)**

But this doesn't work now, I've tried this way, but add only the text of the route in the facebook search engine

New Code

photo_element = driver.find_element(By.XPATH,'//*[@aria-label="Agregar fotos"]')
photo_element.send_keys(photo)

DIV photos

CODE DIV

来源:https://stackoverflow.com/questions/65268922/python-selenium-sales-group-fb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!