Code:
<input type="file" accept="image/png, image/jpeg" style="display: none;">
What I am trying to do:
upload = driver.find_elements_by_xpath("//input[@type = 'file']")
upload.send_keys('/Users/username/Desktop/images/filename.jpg')
PS : This code is not in any iframe and element can be found (I checked its attribute to be sure)
Nothing happens, I have written the same logic to upload files in other test cases and it worked.
Thanks for your help!