Checks whether element has an attribute with specified name.
string $name:
bool
public function hasAttribute(string $name) { return null !== $this->getDriver() ->getAttribute($this->getXpath(), $name); }