Tag: capybara popupwindow

切换到黄瓜,水豚的弹出窗口

在RSpec我可以使用这样的代码切换到弹出窗口, 链接 ,我怎么能在Cucumber步骤中做这样的事情? login_window = page.driver.find_window(‘PPA_identity_window’) main_window = page.driver.find_window(”) # We use this to execute the next instructions in the popup window page.within_window(login_window) do #Normally fill in the form and log in fill_in ’email’, :with => “” fill_in ‘password’, :with => “” click_button ‘Log In’ end