【发布时间】:2020-07-30 16:35:45
【问题描述】:
有谁知道如何获取按钮:
svg[@aria-label='Like']
我尝试了各种组合...没有任何效果。 我曾与:
//button[@class='wpO6b ']
但我不想再使用它了。 所以我的尝试:
//button[@class='wpO6b ']/descendant::svg[@aria-label='Like']
//button[@class='wpO6b' and descendant::svg[@aria-label='Like']]
//button[@class='wpO6b ']//svg[@aria-label='Like']
感谢阅读!
编辑:我想点击按钮元素。
【问题讨论】:
标签: python python-3.x selenium selenium-webdriver xpath