ame of <code>:pageFileName</code>.</p>
<p>For example in case of: <code>I visit the &quot;myPage&quot; page</code> there should be a file <code>myPage.js</code> inside the <code>pages</code> directory.</p>
<p>If we have a page object with a name <code>somePageObject.js</code> defined inside <code>pages</code> directory then:</p>
<p><code>Given I visit the &quot;somePageObject&quot; page</code></p>
<p>will set <code>this.currentPage</code> variable to <code>somePageObject</code> page and we should end up on 