How do I send a file link to load on the page using selenium?
<input type="file" id="filArquivo" class="infraInputFile" name="filArquivo" size="50" onchange="objUpload.executar();" tabindex="1000">
Does not work:
WebDriverWait(navegador, 20).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="filArquivo"]'))).send_keys("Doc.pdf")
Does not work:
WebDriverWait(navegador, 20).until(EC.element_to_be_clickable((By.ID, 'filArquivo'))).send_keys("Doc.pdf")
Snapshot:
Try:
Using CSS_SELECTOR:
Using XPATH: