Search for xpath

  1. Search 7.x for xpath
  2. Search 9.5.x for xpath
  3. Search 10.3.x for xpath
  4. Search 11.x for xpath
  5. Other projects
Title Object type File name Summary
AssertContentTrait::assertFieldByXPath function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists in the current page by the given XPath.
AssertContentTrait::assertNoFieldByXPath function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist or its value does not match, by XPath.
AssertContentTrait::buildXPathQuery function core/tests/Drupal/KernelTests/AssertContentTrait.php Builds an XPath query.
AssertContentTrait::constructFieldXpath function core/tests/Drupal/KernelTests/AssertContentTrait.php Helper: Constructs an XPath for the given set of attributes and value.
AssertContentTrait::xpath function core/tests/Drupal/KernelTests/AssertContentTrait.php Performs an xpath search on the contents of the internal browser.
AssertLegacyTrait::assertFieldByXPath function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a field exists in the current page by the given XPath.
AssertLegacyTrait::assertNoFieldByXPath function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a field does not exist or its value does not match, by XPath.
AssertLegacyTrait::buildXPathQuery function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Builds an XPath query.
AssertLegacyTrait::constructFieldXpath function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Helper: Constructs an XPath for the given set of attributes and value.
AttributeTest::getXPathResultCount function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Counts the occurrences of the given XPath query in a given HTML snippet.
BrowserTest::testXPathEscaping function core/modules/simpletest/src/Tests/BrowserTest.php Tests XPath escaping.
BrowserTestBase::cssSelectToXpath function core/tests/Drupal/Tests/BrowserTestBase.php Translates a CSS expression to its XPath equivalent.
BrowserTestBase::xpath function core/tests/Drupal/Tests/BrowserTestBase.php Performs an xpath search on the contents of the internal browser.
BrowserTestBaseTest::testXpathAsserts function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts which use xpath directly.
CommentPagerTest::clickLinkWithXPath function core/modules/comment/tests/src/Functional/CommentPagerTest.php Follows a link found at a give xpath query.
FieldRdfaTestBase::xpathContent function core/modules/rdf/tests/src/Kernel/Field/FieldRdfaTestBase.php Performs an xpath search on a certain content.
FieldWebTest::xpathContent function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Performs an xpath search on a certain content.
LinkGeneratorTest::assertNoXPathResults function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Checks that the given XPath query has no results in a given HTML snippet.
WebAssert::buildXPathQuery function core/tests/Drupal/Tests/WebAssert.php Builds an XPath query.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.