acs::test::xpath::get_text (public)
acs::test::xpath::get_text root xpath
Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl
Get a text element from tdom via XPath expression. If the XPath expression matches multiple nodes, return a list.
- Parameters:
- root (required)
- xpath (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- markup_parsing
Source code: set nodes [$root selectNodes $xpath] switch [llength $nodes] { 0 {set result ""} 1 {set result [$nodes asText]} default { set result "" foreach n $nodes { lappend result [$n asText] } } } return $resultXQL Not present: Generic, PostgreSQL, Oracle