Using Selenium for Python, I'm trying to catch the entire description text from this page: realestate.com.kh: Agile Sky Residence
Before clicking on "read more":
After clicking on "read more":
options = webdriver.ChromeOptions()
options.add_argument('headless')
browser = webdriver.Chrome('chromedriver',chrome_options=options)
browser.maximize_window()
browser.implicitly_wait(1)
# click on "Read more", which path is //*[@id="listing-desctiption"]/div[3]/a
browser.find_elements_by_xpath('//*[@id="listing-desctiption"]/div[3]/a')[0].click()
browser.implicitly_wait(1)
# catch the full content of the unwrapped text which path is //*[@id="undefined1"]
descr = browser.find_element_by_xpath('//*[@id="undefined1"]').text
print(descr)
Unfortunately, I get the following error:
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element ... is not clickable at point (399, 591). Other element would receive the click: ... (Session info: headless chrome=76.0.3809.100)
Am I not proceeding correctly for this kind of situation?