How to find element by type using protractor
<p>i have </p>

<pre><code>            input type="text"
</code></pre>

<p>It changes on buttnonClick to</p>

<pre><code>             type="password"
</code></pre>

<p>How to check the type changes</p>

<p>Tried :</p>

<pre><code>             var inputType = element(by.css('input.MyValue').clear();
</code></pre>