gpt4 book ai didi

Python - Selenium : Find/Click YT-Like Button

转载 作者:行者123 更新时间:2023-12-03 06:17:07 25 4
gpt4 key购买 nike

你们中的任何人都知道如何使用 selenium 在 Python 中查找/单击类似 YT 的按钮,因为它没有真正的 ID 等...

感谢您的回答

最佳答案

您可以像这样使用 CSS 选择器进行选择:

如果你想like :
#watch8-sentiment-actions > span > span:nth-child(1) > button
如果你想取消like :
#watch8-sentiment-actions > span > span:nth-child(2) > button

关于Python - Selenium : Find/Click YT-Like Button,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42515611/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com