Page Should Contain Button xpath = /html/body/blockquote/form/p/input
Click Button xpath = /html/body/blockquote/form/p/input
Confirm Action
The 'Confirm Action' keyword is supposedly used to select OK in an alert box, which is not happening in the above case. In my opinion, Selenium2Library is not treating the download box as an alert box, because when I tried Get Alert Message, I'm receiving an output saying 'No alert box found'.
In what way can I select the OK in the download box? Also, the test case should be dependent on Selenium2Library keywords only. No external Python APIs can be used.
Selenium cannot handle the browser's download box. A workaround is to disable the download popup. You'll have to make a library which sets the Firefox settings and download path:
Then import the library in your testsuite:
And set the Firefox profile when you open the browser: