0

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?

user1534379
  • 1
  • 1
  • 3

1 Answers1

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() }