Sha256: 250c86a5287a263c53e8702c4091e1d4cab8b4c396c77e8498e0821556c53824

Contents?: true

Size: 1.4 KB

Versions: 11

Compression:

Stored size: 1.4 KB

Contents

<%# frozen_string_literal: true %>
<html>
  <head>
    <title>With Windows</title>
    <script src="/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function(){
      $('#openWindow').click(function(){
        window.open('/popup_one', 'firstPopup');
        return false;
      });

      $('#openWindowWithTimeout').click(function(){
        setTimeout(function(){
          window.open('/popup_one', 'timeoutPopup');
        }, 600);
        return false;
      });

      $('#openWindowWithLongerTimeout').click(function(){
        setTimeout(function(){
          window.open('/popup_one', 'longerTimeoutPopup');
        }, 1400);
        return false;
      });

      $('#openTwoWindows').click(function() {
        window.open('/popup_one', 'firstPopup');
        window.open('/popup_two', 'secondPopup');
        return false;
      });

      $('body').addClass('loaded');
    });
    </script>
  </head>
  <body>
    <button id="openWindow">Open new window</button>

    <button id="openWindowWithTimeout">Open new window with timeout</button>

    <button id="openWindowWithLongerTimeout">Open new window with longer timeout</button>

    <button id="openTwoWindows">Open two windows</button>

    <button id="doesNotOpenWindows">Does not open windows</button>

    <iframe src="/frame_one" id="frameOne"></iframe>
  </body>
</html>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
capybara-2.12.0 lib/capybara/spec/views/with_windows.erb
capybara-2.11.0 lib/capybara/spec/views/with_windows.erb
capybara-2.10.2 lib/capybara/spec/views/with_windows.erb
capybara-2.10.1 lib/capybara/spec/views/with_windows.erb
capybara-2.10.0 lib/capybara/spec/views/with_windows.erb
capybara-2.9.2 lib/capybara/spec/views/with_windows.erb
tdiary-5.0.2 vendor/bundle/gems/capybara-2.8.0/lib/capybara/spec/views/with_windows.erb
capybara-2.9.1 lib/capybara/spec/views/with_windows.erb
capybara-2.9.0 lib/capybara/spec/views/with_windows.erb
capybara-2.8.1 lib/capybara/spec/views/with_windows.erb
capybara-2.8.0 lib/capybara/spec/views/with_windows.erb