Lines Matching refs:selector
37 * that follow the Jquery API and uses [css-selector](https://symfony.com/doc/current/components/css_selector.html)
38 * to get Xpath expression from Css selector
697 * Query via a CSS selector
699 * @throws ExceptionBadSyntax - if the selector is not valid
700 * @throws ExceptionNotFound - if the selector selects nothing
702 public function querySelector(string $selector): XmlElement
704 $domNodeList = $this->querySelectorAll($selector);
708 throw new ExceptionNotFound("No element was found with the selector $selector");
716 public function querySelectorAll(string $selector): array
718 $xpath = $this->cssSelectorToXpath($selector);
733 public function cssSelectorToXpath(string $selector): string
736 return PhpCss::toXpath($selector);
738 throw new ExceptionBadSyntax("The selector ($selector) is not valid. Error: {$e->getMessage()}");