Sha256: a2a859079222fba7d63f18c4c8ed1506a6956bcbf0609696d0bbba1ae518c09c

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 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;
      });
    });
    </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

4 entries across 4 versions & 3 rubygems

Version Path
tdiary-5.0.1 vendor/bundle/gems/capybara-2.7.1/lib/capybara/spec/views/with_windows.erb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/capybara-2.7.1/lib/capybara/spec/views/with_windows.erb
capybara-2.7.1 lib/capybara/spec/views/with_windows.erb
capybara-2.7.0 lib/capybara/spec/views/with_windows.erb