Ruby with Watir: Handling javascript popup window
问题 I have a problem with watir and javascript popup window here's my test script require 'watir' browser = Watir::Browser.start "/url/" browser.link(:text, /Add New Blog/).wait_until_present browser.link(:text, /Add New Blog/).click // Here is where the javascript window popup window = browser.ie.Document.ParentWindow browser.window(:title, /Blog/) do browser.text_field(:id, /text title of Blog/).set 'Watir' browser.select_list(:id, /dropdownlist type/).select ("News") browser.button(:value,