I have a problem with watir and javascript popup window
here\'s my test script
require \'watir\'
browser = Watir::Browser.start \"/url/\"
browser.l
There are two forms of Watir - watir-classic and watir-webdriver. If possible/convenient you should use watir-webdriver because it is the future of browser automation and where all the development focus will be going forward.
Your code looks fine if you are using watir-webdriver. I have never used watir-classic, but it appears that it only supports initializing a window with a hash instead of multiple arguments. So maybe this will work for you if you need to use watir-classic:
browser.window(title: /Blog/) { #execute block }