Sha256: 572fb62129b55cb555a6252005369e6f4a5ccc5276dcfa01c51d01d84c544d7f

Contents?: true

Size: 834 Bytes

Versions: 15

Compression:

Stored size: 834 Bytes

Contents

<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Right Click Test</title>
    <script src="javascript/helpers.js" type="text/javascript" charset="utf-8"></script>
    <script src="javascript/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
  </head>
  <script>
    $(document).ready(function() {
      $(document).on("contextmenu", "#click-logger", function(evt){
        $("#log").append("<p>control=" + evt.ctrlKey + " alt=" + evt.altKey + "</p>");
        return false;
      });
    });
  </script>
  <body>
    <div id="messages"></div>
    <div id="click" oncontextmenu='WatirSpec.addMessage("right-clicked"); return false'>Right click!</div>
    <br />
    <div id="click-logger">Right click with modifiers!</div>
    <div id="log"></div>
  </body>
</html>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
watir-7.3.0 spec/watirspec/html/right_click.html
watir-7.2.2 spec/watirspec/html/right_click.html
watir-7.2.1 spec/watirspec/html/right_click.html
watir-7.2.0 spec/watirspec/html/right_click.html
watir-7.1.0 spec/watirspec/html/right_click.html
watir-7.0.0 spec/watirspec/html/right_click.html
watir-7.0.0.beta5 spec/watirspec/html/right_click.html
watir-7.0.0.beta4 spec/watirspec/html/right_click.html
watir-7.0.0.beta3 spec/watirspec/html/right_click.html
watir-7.0.0.beta2 spec/watirspec/html/right_click.html
watir-7.0.0.beta1 spec/watirspec/html/right_click.html
watir-6.19.1 spec/watirspec/html/right_click.html
watir-6.19.0 spec/watirspec/html/right_click.html
watir-6.18.0 spec/watirspec/html/right_click.html
watir-6.17.0 spec/watirspec/html/right_click.html