When I execute the code
b.javascript_dialog().exists?
it works fine in WATIR 3.0.0 but it's throwing the following error in WATIR 4.0.2, Why it is so? Have they given any other function corresponding to "javascript_dialog()"?
hello.rb:8:in <main>': undefined method
javascript_dialog' for # (NoMethodError)
From the changelog for v3.1.0:
The
javascript_dialog
has been replaced byalert
: