Checks whether element has a field (input, textarea, select) with specified locator.
string $locator input id, name or label:
bool
public function hasField(string $locator) { return null !== $this->findField($locator); }