All Posts | Python 2nd May 202321st October 2023 Using xPath Variable = page.locator(‘xpath=<the actual xpath>’) print(Variable.text_content()) Examples in Practice