Match

This move the test test for the target element into the codesy object match.

Before this the request for csrf token executed before the element test and wasted a round trip if the element didn't exist.