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 :
Remove Browser#(javascript_)dialog. Use Browser#alert API instead.
The javascript_dialog
has been replaced by alert
:
b.alert.exists?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.