cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

window_opened_by doesn't work for pages with iframes

Open betelgeuse opened this issue 5 years ago • 2 comments

Spec code

    window = window_opened_by do
      click_link 'Link to a page with iframe'
    end
    within_window window do
      expect(page).to have_content 'Wrapper page'
    end

Expected

Find Wrapper page text

Actual

The page text only includes contents from iframe. I verified with capybara and selenium-webdriver that it behaves so that you get the Wrapper page contents.

betelgeuse avatar Apr 26 '20 22:04 betelgeuse

I would appreciate a failing test

route avatar Apr 28 '20 08:04 route

This is fixed by rubycdp/ferrum#77

betelgeuse avatar Apr 28 '20 12:04 betelgeuse