尝试对元素执行'.long_press'时出现以下异常。有人可以建议如何处理吗?
selenium.common.exceptions.InvalidArgumentException: Message: Parameters were incorrect. We wanted {"required":["elements"]} and you sent ["element"]
add_button = driver.find_element(By.XPATH, '//*[@id="button"]')
press = TouchActions(driver)
press.long_press(add_button).perform()