page.get_by_text('text').locator("xpath=//span[contains(text(),'Subtitle')]/../..//p").text_content().strip()