Container parameter for elementExists methods

Allows you to pass in an element as a container, to assert another element exists within it.

Contributes to #293.