Py学习  »  Python

如何使用selenium+python加载动态内容

Youcef • 5 年前 • 2490 次点击  

在Quora用户配置文件页面上,我想通过单击“更多”来显示每个用户答案的全部文本,但我无法获得“更多”元素列表,而是得到一个空列表,如何操作?

这是我的代码:

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

以下是用户配置文件的示例: https://www.quora.com/profile/Ashley-Isabella-3

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/43085
 
2490 次点击  
文章 [ 3 ]  |  最新文章 5 年前