Extracting getFirstElementWithTagName

Since `getFirstElementWithTagName()` is a helper function, I wanted it somewhere where I could access it from other specs.