📜  获取文本 selenium - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:53.496000             🧑  作者: Mango

代码示例1
add ".text" to the end of the finding element function, so for example,

to get the text from something like :
browser.find_element_by_xpath('Insert xpath')

you do:
browser.find_element_by_xpath('Insert xpath').text