【发布时间】:2015-11-26 14:12:30
【问题描述】:
我尝试了下面链接中提到的不同方法,但没有一个有效。
我更喜欢可以使用窗口标题切换到窗口的方法,这也不起作用
- http://elementalselenium.com/tips/4-work-with-multiple-windows
- Switch to popup windows in cucumber, capybara
- How to close all the windows before the next test in a test suite?
- http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Window
- https://github.com/teampoltergeist/poltergeist/issues/21
PS:它不是在同一浏览器中弹出一个新标签。
我正在使用watir webdriver
【问题讨论】: