Dec-12-2017, 04:04 PM
elem2=driver.find_element_by_id('file_upload') print(elem2) elem2.send_keys("C:\\Users\\pubhatia\\Documents\\learning\\python\\call_url.py")Ok that looking good. This means that you did manage to find the element and then you did manage to upload path.
But you seem to close the webdriver. I would suggest that you seen send an "ENTER" key for upload the file path you want to upload
builder = Actions(driver); builder.keyDown(Keys.ENTRE).perform()I haven't tested the code. That was such and idea. Lookup the selenium doc.