Answers for "xpath starts-with and ends-with"

0

xpath starts-with and ends-with

$x('//span[@class="text" and starts-with(.,"A")]/text()')
#Delivers texts of certain html element(span here) which start with "A"
$x('//span[@class="text" and ends-with(.,"A")]/text()')
#Delivers texts of certain html element(span here) which ends with "A" ;)
Posted by: Guest on October-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language