How to scrape specific parts in selection

Hi im confused how to select only some of the lines when the selector selected more than I need.


I only want to take the highlighted one but the selector highlighted more than what I need

What should I do to remove the extra part?

@Michael_Wong If I understood correctly you are looking to get everything under the 'Interaksi Obat' title. If so then you could use a 'Grouped' selector - p:contains("Interaksi Obat") + ul li

Or you could take everything that this description contains and clean up the data by a certain keyword using a regular expression. For example - Interaksi.*

i see thanks for the information