code> is executed in context of <code>dashboard</code> Page Object, thus we can assume that <code>profileButton</code> should be defined inside the
<code>pages/dashboard.js</code> file.</p>
<p>At the same time the step <code>And the &quot;myName&quot; element is visible</code> is executed in context of <code>myProfile</code>, so <code>myName</code> should be defined in <code>pages/myProfile.js</code> file.</p>
<h2><a class="anchor" aria-hidden="true" id="elements-and-locators"></a><a href="#elements-and-loc