I'm trying to automate file download function. When I click a link of PDF, download confirmation window will pop up. How to write geb code to click Y in (Y/N) selection in popup window by GEB script?
Asked
Active
Viewed 2,632 times
1 Answers
0
Using withConfirm(true) will bypass the confirm box by clicking okay. $() is the Jquery element for the button responsible for Dialog box. .click() makes a click
withConfirm(true) { $("Element responsible for download").click() }

Sai AmarNath Chintha
- 13
- 4