I have a file field whose display is None , I want to upload a file into it using selenium python bindings
I tried this but its not working
driver.find_element_by_id("IdOfInputTypeFile").send_keys(os.getcwd()+"/image.png")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this basically
execute_scriptis the command for python to run a javascript as there is no pythonic way to deal with css so u have to execute a javascript to do that.