Al Imran
Al Imran

Reputation: 882

Choose file and Input Text keyword not working in Robot Framework Selenium

Choose File and Input Text keyword not working in Robot Framework Selenium

What I have tried so far:

Choose File    xpath=//div[@id='dZUpload']    E:\\PPM_PDM_29_03_2019.xls 

Input Text     xpath=//div[@id='dZUpload']    E://PPM_PDM_29_03_2019.xls

I'm using SeleniumLibrary

Browser: chrome

Upvotes: 0

Views: 1051

Answers (1)

Ardesco
Ardesco

Reputation: 7441

Selenium's upload file functionality does not work with a <div> element, it only works with an element that is an <input type="file">

Upvotes: 3

Related Questions