an class="hljs-keyword">this</span>.url = '/dashboard';
        
        <span class="hljs-keyword">this</span>.myName = element(by.css('.myName'));
    }
}

module.exports = <span class="hljs-type">DashboardPage</span>;
</code></pre>
<p>As you see we added a single line <code>this.myName = element(by.css('.myName'));</code>.</p>
<p><code>by.css('.myName')</code> - is a locator, this is a standard protractor syntax, you can read more on protractors documentation</p>
<p>By joining <code>element</code> method