使用针对移动浏览器(Safari)的appium运行测试时,InvalidArgumentException

时间:2019-04-02 20:12:27

标签: python selenium-webdriver appium mobile-browser

尝试对元素执行'.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()

0 个答案:

没有答案