title: How to check if an element is not clickable with Protractor?
body: <p>It's trivial to test if an element <em>is</em> clickable with Protractor, but I'm stuck scratching my head trying to figure out how to check if an element is <em>not</em> clickable.</p>
  
  <p>I've attempted to wrap the click function in a try/catch so that when an error is thrown when trying to click it should catch it and let the test pass; however, this does not work.</p>
  
  <p>Here is my code for the method that does the check:</p>
  
  <pre><code>return this.shouldSeeDisabledFunds()
      .then(function() {
          var clickable = true;
  
          try {
              fundsElem.first().click();
          } catch (e) {
              clickable = false;
              console.log(clickable);
          } finally {
              console.log(clickable);
          }
  
          console.log(clickable);
  
          // All the way through, clickable is still true, and the console log in the
          // catch is not called. I believe this is because click is asynchronous.
      })
  ;
  </code></pre>