Xpath. Select 'a' Tag Text But Only Up To Specific Text Value
I have the following HTML code that I'm reading from a movies web site:
Director Bobby Farrelly, Copy
Above xpath reads: find all div where class attribute value equals "blue". Then from within each of such div, select all <a> tag before text node containing text "With".
Output in xpath tester :
'<ahref="http://...">Bobby Farrelly</a>'
'<ahref="http://...">Peter Farrelly</a>'
Post a Comment for "Xpath. Select 'a' Tag Text But Only Up To Specific Text Value"