Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boton = driver.find_element_by_id('tabComments_btn')
- boton.click()
- wait = WebDriverWait(driver, 100)
- driver.execute_script("window.scrollTo(0, 1300)")
- botonTodos= driver.find_element_by_class_name('thread-node-children-load-all-btn')
- wait = WebDriverWait(driver, 100)
- botonTodos.click()
- wait.until(EC.presence_of_element_located((By.CLASS_NAME, 'thread-node-message')))
- for elm in driver.find_elements_by_css_selector(".thread-node-message"):
- print(elm.text)
- <a href="#" class="thread-node-btn thread-node-children-load-next-btn">Load next 10 comments</a>
- <a href="#" class="thread-node-btn thread-node-children-load-all-btn">Load all comments</a>
- <a href="#" class="thread-node-btn thread-node-btn-post">Publicar un comentario</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement