Method: Ferrum::Dialog#accept
- Defined in:
- lib/ferrum/dialog.rb
#accept(prompt_text = nil) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/ferrum/dialog.rb', line 13 def accept(prompt_text = nil) = { accept: true } response = prompt_text || default_prompt .merge!(promptText: response) if response @page.command("Page.handleJavaScriptDialog", slowmoable: true, **) end |