Sha256: c97ce8b43dc880f31db333706444bb45154098a78fc0fe5edd4b0421717ef747

Contents?: true

Size: 1.44 KB

Versions: 108

Compression:

Stored size: 1.44 KB

Contents

<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>

    <div id="scope">
      <span>My scoped content</span>
    </div>
  </body>
</html>

Version data entries

108 entries across 93 versions & 3 rubygems

Version Path
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/capybara-3.33.0/lib/capybara/spec/views/with_windows.erb
capybara-3.33.0 lib/capybara/spec/views/with_windows.erb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/spec/views/with_windows.erb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/capybara-3.32.2/lib/capybara/spec/views/with_windows.erb
capybara-3.32.2 lib/capybara/spec/views/with_windows.erb
capybara-3.32.1 lib/capybara/spec/views/with_windows.erb
capybara-3.32.0 lib/capybara/spec/views/with_windows.erb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/capybara-3.31.0/lib/capybara/spec/views/with_windows.erb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/spec/views/with_windows.erb
capybara-3.31.0 lib/capybara/spec/views/with_windows.erb
capybara-3.30.0 lib/capybara/spec/views/with_windows.erb
tdiary-5.1.0 vendor/bundle/gems/capybara-3.29.0/lib/capybara/spec/views/with_windows.erb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/spec/views/with_windows.erb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/spec/views/with_windows.erb
capybara-3.29.0 lib/capybara/spec/views/with_windows.erb
capybara-3.28.0 lib/capybara/spec/views/with_windows.erb
capybara-3.27.0 lib/capybara/spec/views/with_windows.erb
capybara-3.26.0 lib/capybara/spec/views/with_windows.erb
capybara-3.25.0 lib/capybara/spec/views/with_windows.erb
capybara-3.24.0 lib/capybara/spec/views/with_windows.erb