Search for xpath

  1. Search 9.5.x for xpath
  2. Search 8.9.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
AJAXElementValidation::testAJAXPathWithoutData function modules/simpletest/tests/ajax.test Try to open default Ajax callback without passing required data.
DrupalWebTestCase::assertFieldByXPath function modules/simpletest/drupal_web_test_case.php Asserts that a field exists in the current page by the given XPath.
DrupalWebTestCase::assertNoFieldByXPath function modules/simpletest/drupal_web_test_case.php Asserts that a field doesn't exist or its value doesn't match, by XPath.
DrupalWebTestCase::buildXPathQuery function modules/simpletest/drupal_web_test_case.php Builds an XPath query.
DrupalWebTestCase::constructFieldXpath function modules/simpletest/drupal_web_test_case.php Helper function: construct an XPath for the given set of attributes and value.
DrupalWebTestCase::xpath function modules/simpletest/drupal_web_test_case.php Perform an xpath search on the contents of the internal browser. The search
is relative to the root element (HTML tag normally) of the page.
SimpleTestBrowserTestCase::testXPathEscaping function modules/simpletest/simpletest.test Tests XPath escaping.
TranslationTestCase::assertContentByXPath function modules/translation/translation.test Asserts an element identified by the given XPath has the given content.
TranslationTestCase::findContentByXPath function modules/translation/translation.test Searches for elements matching the given xpath and value.

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