问题
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