Use #find instead of #getElementsByClass.
Removed getElementsByClass which is no longer necessary.
Made find/findOne applying entire selectors inside root elements.