When conducting tests, my directory structure is set up as follows:
custom
lib
tests
pages
Each JavaScript function that is written in the 'custom' directory can be accessed by the 'test' directory through a "browser" object.
This access is facilitated by the "testutils.js" file located in the lib directory.
On a similar note,
Is there a way to access the JavaScript functions in the 'pages' directory through the 'test' directory using the path "browser.pages.function-name()"?