def LikePhotos(self, amount):
bot = self.bot
#if button is being clicked then move to next pic else click then move to next pic
if():
print("Button has already been clicked")
else:
print("Button hasn't been clicked!")
bot.find_element_by_class_name("_9AhH0").click()
硒不是这样工作的。Selenium可以向浏览器发送命令来单击按钮,但不能检查是否通过其他方式单击了按钮。