Python Selenium - navigating through Windows system popup

Solution 1:

To upload file with Selenium:

1 Find the input element with type=file.

2 Call send-keys selenium command and send the file absolute path text to the input-file element.

file_input = driver.find_element_by_xpath("//input[@type='file']")
file_input.send_keys("D:\\Documents\\user-logo.jpg")

No additional clicks required.