I trying to get the number of comments and content of comments from : https://www.arlnow.com/
I have a problem for “load more comments” button.
I tried:
<code>load_more_xpath = '//a[contains(text(), "Load more comments")]'
load_more_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, load_more_xpath)))
load_more_button.click()
</code>
<code>load_more_xpath = '//a[contains(text(), "Load more comments")]'
load_more_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, load_more_xpath)))
load_more_button.click()
</code>
load_more_xpath = '//a[contains(text(), "Load more comments")]'
load_more_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, load_more_xpath)))
load_more_button.click()
I tried different ways but I could not find proper findelement for the number of comments and the content of comments!
New contributor
Sepideh Monjezi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.