skip to Main Content

Html – Return the one part of the text under a button – Selenium Python

I'm wondering if it's possible to just return "Glenvale" from the below HTML with Selenium: Link to image I've tried using the Xpath, but that doesn't seem to work. suburb = driver.find_element(By.XPATH, '//*[@id="__next"]/div/div[2]/div/div[4]/div/div/div[8]/div/div/p/text()[6]').text below is the website: https://www.domain.com.au/2-76-shelby-street-glenvale-qld-4350-2014406153

VIEW QUESTION

Ubuntu – Why does Selenium throw an "Exec format error"?

This code throws an exception: from selenium import webdriver import time driver = webdriver.Chrome() driver.get('https://www.google.com') time.sleep(10) Here's the backtrace: Traceback (most recent call last): File "/home/orangepi/.local/lib/python3.10/site-packages/selenium/webdriver/common/selenium_manager.py", line 134, in run completed_proc = subprocess.run(args, capture_output=True) File "/usr/lib/python3.10/subprocess.py", line 503, in run…

VIEW QUESTION
Back To Top
Search