如何在selenium webdri中以不区分大小写的方式查找包含特定单词的链接

2024-10-01 00:29:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我希望能够找到包含以下内容的链接:hello,hello,hello,etc.到目前为止,我使用的是对casse敏感的find_elements_by_partial_link_text

links = driver.find_elements_by_partial_link_text('hello')

Tags: texthelloby链接driveretclinkelements