page.driver.browser.window_handles.length.should == 1

k_oshimak_oshima のブックマーク 2015/04/22 10:50

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How can I detect if a popup (new window) is open or not?

    Answer (1 of 2): If there is content in the window, you can do this: [code ruby] Then /^I should see "([^\"]*)" within a new window$/ do |text| within_window(page.driver.browser.window_handles.last...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう