I am currently using a pageobject pattern with wdio as described in their documentation guides.
Each element is stored in a better such as:
get username()