code: public function findButton($selector)
      {
          $element = $this->getWorkingElement();
  
          // Search inside of: "id", "name", "title", "alt" and "value" attributes.
          return $element->findButton($selector)
              ?: (new XPath\InaccurateText('//button', $element))->text($selector)->find();
      }
docs: @param string $selector
  
  @return NodeElement