mercredi 28 novembre 2018

How load dynamic content using Selenium + Python

On a Quora user profile page, I want to show the entire text for each user's answer, by clicking on "more", but I couldn't get the 'more' elements list, instead I am getting an empty list, how to do?

Here is my code:

more_buttons= browser.find_elements_by_name('more')
for more_button in more_buttons:
        more_button.click()

Here is an example of a user profile: https://www.quora.com/profile/Ashley-Isabella-3




Aucun commentaire:

Enregistrer un commentaire