Reduced spec running time by creating hash of id to element

* Use hash to find elements instead of time-expensive capybara xpath evaluations